[DELETE] Delete User
You can delete a user using the user identifier. All of the user's data will be deleted.
Request
URL
DELETE
https://api.asleep.ai/ai/v1/users/{user_id}
Header
Field | Type | Required | Description |
---|---|---|---|
x-api-key | String | O | API Key |
Path Parameter
Field | Type | Required | Description |
---|---|---|---|
user_id | String | O | user id |
Example
curl "https://api.asleep.ai/ai/v1/users/{user_id}" -XDELETE \
-H "x-api-key: <YOUR_API_KEY>"
Response
204 No Content
- user information has been successfully deleted
401 Unauthorized
user_id
is empty or in an invalid format
{
"detail": "user_id is invalid"
}
404 Not Found
- user corresponding to
user_id
does not exist
{
"detail": "user does not exist"
}
Updated 13 days ago