Skip to content
Skip to Content
Coder Docs

Get user quiet hours schedule

GET
/api/v2/users/{user}/quiet-hours

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

user*string

User ID

Formatuuid

Response Body

OK

application/json
  1. response
[index: integer]?

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/users/{user}/quiet-hours" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
[  {    "next": "2019-08-24T14:15:22Z",    "raw_schedule": "string",    "time": "string",    "timezone": "string",    "user_can_set": true,    "user_set": true  }]