Skip to main content
PATCH
/
api
/
agents
/
{agentId}
/
trigger
/
{triggerId}
/
status
cURL
curl -X PATCH "https://app.cotool.ai/api/agents/:agentId/trigger/:triggerId/status" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":true}'
{
  "success": true,
  "enabled": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.cotool.ai/llms.txt

Use this file to discover all available pages before exploring further.

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