POST
/
schedules
curl --request POST \
  --url https://example.com/chrono/schedules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "My Operating Hours",
  "timezone": "UTC",
  "hours": [
    {
      "day": "sunday",
      "start": "<string>",
      "end": "<string>"
    }
  ],
  "metadata": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ]
}'
{
  "id": "6fbad4f2-1eb8-4ef7-abd0-bc1ef1a7e5f9",
  "name": "My Operating Hours",
  "timezone": "America/Los_Angeles",
  "active": true,
  "updated_at": "2025-03-04T16:00:00Z",
  "created_at": "2025-03-01T08:30:00Z",
  "hours": [
    {
      "day": "monday",
      "start": "09:00",
      "end": "17:00"
    }
  ],
  "metadata": [
    {
      "key": "some_label",
      "value": "some_value"
    }
  ]
}

Authorizations

Authorization
string
header
required

Standard Bearer token in the Authorization header as Bearer <token> with the correct scopes (e.g., schedule:view, schedule:create, etc.).

Body

application/json

Response

201
application/json

Created schedule

The response is of type object.