Skip to main content
PATCH
/
api
/
agents
/
{agentId}
/
trigger
/
{triggerId}
/
status
cURL
curl --request PATCH \
  --url https://app.cotool.ai/api/agents/{agentId}/trigger/{triggerId}/status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "enabled": true
}'
{
  "success": true,
  "enabled": true
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Path Parameters

agentId
string<uuid>
required

Unique identifier of the agent

triggerId
string<uuid>
required

Unique identifier of the trigger

Body

application/json

Request body for updating trigger status

enabled
boolean
required

Whether the trigger should be enabled or disabled

Response

200 - application/json

Successful response

Response confirming trigger status update

success
boolean
required

Whether the status update was successful

enabled
boolean
required

Current enabled state of the trigger after update