Archive an action definition

View as Markdown

Archives a draft or active definition (and cascades to its action-scoped template/form). Archive is the only way to retire a definition — there is no delete.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

idstringRequired

Response

The archived definition.
definitionmap from strings to any
An arbitrary JSON object.

Errors

401
Unauthorized Error
404
Not Found Error