Schedules

Create a schedule

Changed on

Creates a reusable availability schedule. Event types reference a schedule to determine their open slots.

post/schedules

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required
name, string
time_zone, string

IANA time zone the availability is expressed in. Defaults to the business's time zone.

availability, object[]

Weekly recurring availability windows. Replaces the existing set. An invalid window is a 422 naming it, e.g. availability[0].end_time, and nothing is changed.

overrides, object[]

Per-date exceptions (days off or custom hours).

Example request

{
  "name": "Working hours",
  "time_zone": "America/New_York",
  "availability": [
    {
      "start_time": "09:00",
      "end_time": "17:00"
    }
  ],
  "overrides": [
    {
      "date": "2026-12-25",
      "start_time": "12:00",
      "end_time": "14:00"
    }
  ]
}

Response

The created schedule

Schedule required
object, string required
id, string required
name, string required
time_zone, string required
created_at, string date-time required
updated_at, string date-time required
availability, object[] required
overrides, object[] required

Changes

    • info

      the unavailable request property default value true was removed

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision