Update trigger

PATCH/v1/triggers/{triggerId}

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
triggerIdpathstringYesTrigger ID
Query parameters
None.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
namestringNoHuman-readable name.
environmentIdstringNoRequired when the updated destinations include `threads`.
agentIdstringNoAgent ID.
eventstringNo—
filtersobjectNo—
actionobjectNo—
action.typesend_messageYes—
action.destinationsworkflows | databases | knowledge | tests | projects | threads[]NoProduct surfaces allowed to consume this webhook. Existing actions without this field default to `threads`.
action.promptstringNoPrompt passed into the trigger execution thread.
action.messagestringNoBackward-compatible alias for `prompt`.
action.templatestringNoLegacy template field. Use `prompt` for new integrations.
action.projectIdstringNoOptional project context attached to the thread created by this webhook.
enabledbooleanNo—

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Trigger updatedapplication/json
FieldTypeRequiredDescription
triggerobjectNo—
trigger.idstringNoUnique identifier.
trigger.userIdstringNoUser ID.
trigger.organizationIdstringNo—
trigger.createdByUserIdstringNo—
trigger.namestringNoHuman-readable name.
trigger.environmentIdstringNoComputer ID.
trigger.agentIdstringNoAgent ID.
trigger.sourcegithub | gitlab | slack | email | webhook | cron | customNo—
trigger.eventstringNo—
trigger.filtersobjectNo—
trigger.actionobjectNo—
trigger.action.typesend_messageYes—
trigger.action.destinationsworkflows | databases | knowledge | tests | projects | threads[]NoProduct surfaces allowed to consume this webhook. Existing actions without this field default to `threads`.
trigger.action.promptstringNoPrompt passed into the trigger execution thread.
trigger.action.messagestringNoBackward-compatible alias for `prompt`.
trigger.action.templatestringNoLegacy template field. Use `prompt` for new integrations.
trigger.action.projectIdstringNoOptional project context attached to the thread created by this webhook.
trigger.destinationsworkflows | databases | knowledge | tests | projects | threads[]NoNormalized destinations resolved from the action.
trigger.enabledbooleanNo—
trigger.webhookSecretstringNo—
trigger.webhookUrlstringNo—
trigger.lastTriggeredAtstringNo—
trigger.createdAtstringNoISO 8601 timestamp.
trigger.updatedAtstringNoISO 8601 timestamp.
Update trigger
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow