Skip to main content
PUT
/
api
/
agents
/
{agentId}
/
trigger
/
{triggerId}
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>"
  }
}

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
name
string
required
source
string
required
Allowed value: "slack"
description
string
allowedUserIds
string[]
allowedUsergroupIds
string[]
allowedChannelIds
string[]

Response

200 - application/json

Successful response

success
boolean
required
data
object
required