Sets the current users sleep mode.
PATCH
/api/user/sleepmode
For the temporary mode, both "from" and "to" need to be given. Both are assumed to be in the format "d.m.Y". 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