Create schedule availability

Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.

POST
/schedule/schedules

Workspace comes from the API key. The host must be a workspace member. Use schedule:read for reads and schedule:write for mutations. Active, paused and archived event types are supported; no calendar or booking fulfillment is exposed yet.

Authorization

headerAuthorizationBearer <Relevate API key>

Relevate API key scoped to the operation's product and environment.

Request Body

application/json
  1. body
date_overrides*array<>
Itemsitems <= 366
host_id*string

Host user ID in the key's workspace

is_default?boolean

First schedule becomes default automatically; selecting another default preserves existing link references.

Defaultfalse
name*string
Length1 <= length <= 100
timezone*string
Length1 <= length <= 100
weekly_intervals*array<>
Itemsitems <= 168

Response Body

Successful operation

application/json
  1. response
id*string
Example Request
curl -X POST 'https://api.relevate.app/schedule/schedules' \
  -H 'Content-Type: application/json' \
  -d '{
  "date_overrides": [
    {
      "intervals": [
        {
          "end_minute": 1,
          "start_minute": 0
        }
      ],
      "local_date": "2019-08-24"
    }
  ],
  "host_id": "string",
  "name": "string",
  "timezone": "string",
  "weekly_intervals": [
    {
      "end_minute": 1,
      "start_minute": 0,
      "weekday": 1
    }
  ]
}'
Example Response
{
  "id": "string"
}