All requests below will use this key. Your API key is sent directly to api.cueapi.ai and never stored by the docs site.
/v1/cues/{cue_id}Update Cue
Partially update a cue. Pause, resume, reschedule, or update the payload.
cue_idstringrequiredpathThe cue ID (format: cue_xxxxxxxxxxxx).
statusstringbodySet to "active" (resume) or "paused" (pause). Only these two values are accepted.
namestringbodyUpdate the cue name.
scheduleobjectbodyUpdate the schedule (cron, at, timezone).
callbackobjectbodyUpdate the callback URL, method, or headers.
payloadobjectbodyUpdate the payload.
descriptionstringbodyUpdate the description.
deliveryobjectbodyTwo-phase delivery configuration.
timeout_seconds(integer, default: 30) - How long to wait for HTTP 200 ACK (1-3600)outcome_deadline_seconds(integer, default: 300) - How long to wait for outcome report after ACK (1-3600)
alertsobjectbodyProactive alerting configuration.
consecutive_failures(integer, default: 3) - Alert after N consecutive failures (1-100)missed_window_multiplier(integer, default: 2) - Alert when no success in schedule interval x N (1-10)
catch_upstringdefault: run_once_if_missedbodyBehavior when executions are missed during downtime. One of:
skip_missed- Fast-forward to next future window, create no backfill executionsrun_once_if_missed- Run once to catch up, then resume normal schedule (default)replay_all_missed- Create executions for every missed window (capped at 100)
verificationobjectbodyOutcome verification policy. Controls what evidence is required for an outcome to be marked verified_success.
mode(string, default: "none") - One of:none,require_external_id,require_result_url,require_artifacts,manual
Warning
Unknown fields are rejected with 422 Unprocessable Entity. Only send fields you want to change.
Request
curl -X PATCH https://api.cueapi.ai/v1/cues/cue_a1b2c3d4e5f6 \
-H "Authorization: Bearer cue_sk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"status": "paused"}'curl -X PATCH https://api.cueapi.ai/v1/cues/cue_a1b2c3d4e5f6 \
-H "Authorization: Bearer cue_sk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"status": "active"}'curl -X PATCH https://api.cueapi.ai/v1/cues/cue_a1b2c3d4e5f6 \
-H "Authorization: Bearer cue_sk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"schedule": {"cron": "0 10 * * *"}}'Response
{
"id": "cue_a1b2c3d4e5f6",
"name": "daily-sync",
"status": "paused",
"next_run": null,
"schedule": {
"type": "recurring",
"cron": "0 9 * * *",
"timezone": "UTC"
}
}{
"detail": [
{
"type": "extra_forbidden",
"msg": "Extra inputs are not permitted",
"input": "worker"
}
]
}/v1/cues/{cue_id}