Update an action definition

View as Markdown

Patches a non-archived custom action definition. The slug is immutable; fields are validated against the definition’s kind (a mismatch is rejected, never silently dropped).

Authentication

AuthorizationBearer

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

Path parameters

idstringRequired

Request

This endpoint expects an object.
namestringOptional1-200 characters
descriptionstringOptional<=5000 characters
iconstring or nullOptional1-64 characters
outputobjectOptional
executionobjectOptional
generationobjectOptional
fillobjectOptional

Response

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

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error