Create a schedule
Changed onCreates a reusable availability schedule. Event types reference a schedule to determine their open slots.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
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
IANA time zone the availability is expressed in. Defaults to the business's time zone.
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.
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
Changes
- info
the
unavailablerequest property default valuetruewas removed
- info
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
4 more changes in this revision
- warning