Skip to content

Sets the current users sleep mode.

PATCH
/api/users/current/sleep-mode

For the temporary mode, both "from" and "to" need to be given in the format "Y-m-d". For other modes, the two fields will be ignored. Optionally, a message can be added.

Authorizations

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Request Body

application/json
JSON
{
"mode": 0,
"from": "string",
"to": "string",
"message": "string"
}

Responses

Success

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python