User info
https://api.xata.io/user
This endpoint allows retrieving or updating a given user by their user ID.
Get User Details
GEThttps://api.xata.io/user
Return details of the user making the request
Status Code | Description | Example Response/Type Definition |
---|---|---|
200 | OK |
|
400 | Bad Request |
|
401 | Authentication Error |
|
404 | Example response |
|
5XX | Unexpected Error |
Update User Info
PUThttps://api.xata.io/user
Update user info
Request Body Type Definition
1 2 3 4 5 6 7 8 9 10
type UpdateUser = User; type User = { /* * @format email */ email: string; fullname: string; image: string; };
Status Code | Description | Example Response/Type Definition |
---|---|---|
200 | OK |
|
400 | Bad Request |
|
401 | Authentication Error |
|
404 | Example response |
|
5XX | Unexpected Error |
Delete User
DELETEhttps://api.xata.io/user
Delete the user making the request
Status Code | Description | Example Response/Type Definition |
---|---|---|
204 | No Content | |
400 | Bad Request |
|
401 | Authentication Error |
|
404 | Example response |
|
5XX | Unexpected Error |