Background Tasks
Save
Save posts the name, instructions, and triggers at revision 1. The stored workflow keeps the name Follow up when a promise slips, those instructions and triggers, cloud execution, and revision 2.
patch/v1/background-tasks/{slug}
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /v1/background-tasks/{slug}
- Auth: HTTP bearer
Path parameters
slugstring required
Workflow address.
Example:follow-up-when-a-promise-slips
Workflow to save.
Request body
Example request
{
"active": true,
"createdAt": "2026-06-04T20:38:00Z",
"executionTarget": "api",
"instructions": "Summarize important account changes and draft follow-up notes.",
"lastAttemptAt": "2026-06-04T21:00:00Z",
"lastRunAt": "2026-06-04T21:02:00Z",
"lastRunId": "run-20260604-210000",
"lastRunSummary": "No high-priority account changes.",
"model": "openai/gpt-4.1-mini",
"name": "Daily Account Summary",
"provider": "openai",
"revision": 2,
"triggers": {
"cronExpr": "0 9 * * *",
"timezone": "America/New_York"
}
}Response
Stored workflow.
Example response
{
"active": true,
"createdAt": "2026-06-04T20:38:00Z",
"executionTarget": "desktop",
"id": "123e4567-e89b-12d3-a456-426614174000",
"instructions": "Summarize important account changes.",
"lastAttemptAt": "2026-06-04T21:00:00Z",
"lastRunAt": "2026-06-04T21:02:00Z",
"lastRunId": "run-20260604-210000",
"lastRunSummary": "No high-priority account changes.",
"model": "openai/gpt-4.1-mini",
"name": "Daily Account Summary",
"provider": "openai",
"revision": 2,
"scheduleSyncState": "current",
"scheduleSyncedAt": "2026-06-04T20:39:00Z",
"slug": "daily-summary",
"templateSlug": "relationship-refresh",
"templateVersion": 1,
"triggers": {
"cronExpr": "0 9 * * *",
"timezone": "America/New_York"
},
"updatedAt": "2026-06-04T20:39:00Z"
}Changes
No recorded changes to this operation across all 50 revisions of this API.