Skip to main content
DELETE
/
api
/
v1
/
users
/
{user_id}
/
events
/
sleep
/
{sleep_id}
Delete Sleep Session
curl --request DELETE \
  --url https://api.example.com/api/v1/users/{user_id}/events/sleep/{sleep_id} \
  --header 'Authorization: Bearer <token>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Open-Wearables-API-Key
string | null

Path Parameters

user_id
string<uuid>
required
sleep_id
string<uuid>
required

Response

Successful Response