Agent Triggers

Update trigger event mode

Set whether a trigger creates an alert before running the agent or runs the agent directly.

patch/api/agents/{agentId}/trigger/{triggerId}/event-mode

Request

  • Base URL
    https://app.cotool.ai
  • Auth
    HTTP bearer

Path parameters

agentIdstring uuid required

Unique identifier of the agent

triggerIdstring uuid required

Unique identifier of the trigger

Request body

eventMode'direct' | 'alert_source' required

Run the agent directly or create an alert before running it

Response

Successful response

successboolean required

Whether the event mode update was successful

eventMode'direct' | 'alert_source' required

Current event mode of the trigger after update

Changes

No recorded changes to this operation across all 2 revisions of this API.