Configure routine automation
Change the schedule and/or the stored run request of a routine in a Space. A key you omit keeps what is stored; schedule: null (explicit) removes the schedule, and with it the run request. The schedule has an entry: the agent, or a pinned script that runs without a model call and escalates to the agent on exceptions or failure. Automated runs execute on behalf of the caller. Returns the effective automation, as routines.automation.get does, plus changes ({schedule|run: {from, to}}) and removed (['schedule'] when the schedule was deleted). When an agent or API key removes a schedule, the routine's owner and the previous actor get a notification.
Authorization
bearerApiKey Create a scoped API key in the Adlass settings.
In: header
Path Parameters
Resource identifier: space_id.
uuidResource identifier: skill_id.
uuidHeader Parameters
Optional correlation identifier.
length <= 128A unique key for this intended write; the body field idempotency_key is accepted instead. One of the two is required. Reuse it only for an identical retry.
1 <= length <= 200Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/spaces/123e4567-e89b-42d3-a456-426614174000/routines/123e4567-e89b-42d3-a456-426614174000/automation" \ -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \ -H "Content-Type: application/json" \ -d '{}'{ "schedule": { "cron": "0 8 * * 1", "timezone": "Europe/Berlin", "active": true }, "run": { "inputs": {}, "scope": { "include_all_processed_documents": true } }, "status": { "schedule": { "active": true, "next_fire_at": "2026-09-04T12:00:00Z" } }}