Update an automation

View as Markdown

Patches an automation and recomputes its next fire time — on every write, not only a schedule change, so re-enabling one re-arms it. Pass threadId: null to forget the bound thread so the next fire starts a fresh one. Authorization: organization admin (plus space:contribute for a new named spaceId, for the caller and for the owner).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

automationIdstringRequired

Request

This endpoint expects an object.
namestringOptional1-80 characters
descriptionstringOptional<=400 characters
playbookIdstringOptional1-128 characters
promptstringOptional1-4000 characters
The user message injected into the thread when the automation fires.
fileIdslist of stringsOptional
spaceIdstringOptional1-128 characters
threadPolicyenumOptional
scheduleobjectOptional
enabledbooleanOptional
triggerEnabledbooleanOptional
threadIdanyOptional

Response

The updated automation.
automationobject

Errors

404
Not Found Error