Schedules

Update a schedule

Changed on

Updates a schedule. Passing availability or overrides replaces that set wholesale.

patch/schedules/{id}

Request

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

Path parameters

id, string required

The resource's ID, as returned in its id field

Request body

object required
name, string
time_zone, string

IANA timezone the availability is expressed in

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 updated 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

    5 more changes in this revision