cURL
curl -X PUT "https://app.cotool.ai/api/agents/:agentId/trigger/:triggerId" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"string","description":"string","source":"slack","allowedUserIds":["string"],"allowedUsergroupIds":["string"],"allowedChannelIds":["string"]}'
{ "success": true, "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "source": "jira", "name": "<string>", "enabled": true, "createdAt": "<string>", "updatedAt": "<string>", "config": {}, "description": "<string>", "secret": "<string>", "cronSchedule": "<string>", "emailAddress": "<string>", "lastRunAttemptedAt": "<string>", "lastRunSucceededAt": "<string>" } }
Modify metadata or configuration of an existing trigger.
API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here
Bearer your_api_key_here
Unique identifier of the agent
Unique identifier of the trigger
"slack"
Successful response
Show child attributes
Was this page helpful?