Availability

Set availability rules

Upsert buffer times and working hours for a calendar.

put/v1/calendars/{id}/availability-rules

Request

  • Base URL: https://api.chronary.ai
  • URL: https://api.chronary.ai/v1/calendars/{id}/availability-rules
  • Auth: HTTP bearer

Path parameters

idstring required

Calendar ID

Example:cal_01H9X4M2P5R8T6V0

Request body

buffer_before_minutesinteger
buffer_after_minutesinteger
timezonestring

Response

Availability rules

idstring required
calendar_idstring required
buffer_before_minutesnumber required
buffer_after_minutesnumber required
working_hoursunknown
timezonestring required
created_atstring date-time required
updated_atstring date-time required

Example response

{
  "id": "avr_01H9X4M2P5R8T6V0",
  "calendar_id": "cal_01H9X4M2P5R8T6V0",
  "buffer_before_minutes": 10,
  "buffer_after_minutes": 5,
  "working_hours": {
    "mon": {
      "start": "09:00",
      "end": "17:00"
    }
  },
  "timezone": "America/New_York",
  "created_at": "2025-01-15T10:00:00.000Z",
  "updated_at": "2025-01-15T10:00:00.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.