Skip to main content
PATCH
/
api
/
agents
/
{agent_uid}
/
triggers
/
{trigger_uid}
Update trigger
curl --request PATCH \
  --url https://api.example.com/api/agents/{agent_uid}/triggers/{trigger_uid} \
  --header 'Content-Type: application/json' \
  --data '
{
  "trigger_type": "<string>",
  "configuration": {},
  "is_active": true
}
'
Updates a trigger on an agent. Only include fields you want to change.

Path parameters

agent_uid
string
required
UUID of the agent.
trigger_uid
string
required
UUID of the trigger.

Request body

trigger_type
string
Updated trigger type.
configuration
object
Updated trigger-specific configuration.
is_active
boolean
Enable or disable the trigger without removing it.

Example

{
  "is_active": false
}

Response

Returns 200 with the updated trigger:
{
  "status": "success",
  "status_code": 200,
  "data": {
    "uid": "t1-uuid-here",
    "agent_uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "trigger_type": "email_received",
    "configuration": null,
    "is_active": false,
    "created_on": "2026-03-20T10:00:00Z",
    "updated_on": "2026-03-20T11:00:00Z"
  }
}

Errors

StatusReason
404Agent or trigger not found
422Invalid trigger configuration