Update a schedule
Body (any subset): frequency, timezone, local_time, start_date (edits keep the calendar-anchored local clock), status (active|paused). Re-enabling (paused → active) re-checks the auto-reload rule first (402 otherwise).
PATCH
/schedules/{schedule_id}Authorization
AuthorizationBearer token · headerrequiredAPI key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.
or
AuthorizationOAuth2 access token · headerrequiredOAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.
Path parameters
schedule_idstring<uuid>requiredRequest body
requiredapplication/jsonfrequencystringAllowed:
dailyweeklyevery_two_weeksmonthlytimezonestringmin length 1 · max length 64
local_timestringmatches ^([01][0-9]|2[0-3]):[0-5][0-9]$
start_datestringmatches ^\d{4}-\d{2}-\d{2}$
statusstringAllowed:
activepausedResponses
200
The schedule after the update
ScheduleEnvelope400
bad_request or validation_failed
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
Array of
objectfieldstringrequiredcodestringrequiredAllowed:
requiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequired402
wallet_not_activated, insufficient_credits, or payment_action_required
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
Array of
objectfieldstringrequiredcodestringrequiredAllowed:
requiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequired404
not_found: unknown id, or an id this key cannot see
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
Array of
objectfieldstringrequiredcodestringrequiredAllowed:
requiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequired