Skip to main content
POST

Create Availability Rule

Add an availability rule (recurring window or exception date) to a calendar.

Endpoint

Path parameters

string
required
Calendar UUID.

Request headers

string
required
Bearer token. Format: Bearer talq_your_environment_token_here
string
required
Must be application/json.

Request body

string
required
Rule type. Options: recurring, exception.

When type: "recurring"

array
required
Array of weekday numbers (1=Mon . 7=Sun).
string
required
Window start. Format: HH:MM.
string
required
Window end. Format: HH:MM.
string
IANA timezone. Defaults to calendar’s timezone.

When type: "exception"

string
required
Date of exception. Format: YYYY-MM-DD.
boolean
required
Whether this date is available (overrides recurring rules) or blocked.

Examples

Response