Update a schedule
PATCH
Patch a schedule's prompt, trigger, policy, or budget; omitted fields are left unchanged. policy_config replaces the stored object; send the full object from GET. Saving policy_config makes the caller the consent for merging. Setting schedule_paid_on needs a workspace owner or admin (403) and a per-run occurrence_budget_usd (400). Invalid fields return 400 INVALID_POLICY.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
schedule_id*stringFormat
uuidcustomer_id?|nullapplication/json- body
occurrence_budget_usd?number|nullpolicy_config?|nullprompt?string|nullschedule_paid_on?boolean|nullskip_if_no_new_commits?boolean|nulltrigger?|nullRequest fulfilled, document follows
application/json- response
cadence_label*stringcoding_repository_id*stringFormat
uuidconsecutive_failures*integercreated_at*stringFormat
date-timeid*stringFormat
uuidlast_occurrence?|nulllast_run_at?|nullnext_fire_at?|nulloccurrence_budget_usd?number|nullpause_reason?string|nullpolicy_config?prompt*stringrepo_name?string|nullschedule_paid_on?booleanDefault
falseskip_if_no_new_commits*booleanstatus*stringtrigger*upcoming?array<>curl -X PATCH 'https://api.syndai.ai/api/v1/external/coding/schedules/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "cadence_label": "Weekly on Monday at 9:00 AM", "coding_repository_id": "8a1d4e2f-5b6c-4d7e-8f9a-0b1c2d3e4f50", "consecutive_failures": 0, "created_at": "2026-10-27T09:00:00Z", "id": "7d6c5b4a-3928-4f17-8e6d-5c4b3a291807", "next_fire_at": "2026-11-02T09:00:00Z", "prompt": "Update dependencies and fix anything the upgrade breaks.", "repo_name": "storefront", "schedule_paid_on": false, "skip_if_no_new_commits": true, "status": "active", "trigger": { "expr": "0 9 * * 1", "kind": "cron", "timezone": "Europe/London" }}