Skip to main content
PUT
/
api
/
agents
/
{agentId}
/
trigger
/
{triggerId}
cURL
curl --request PUT \
  --url https://app.cotool.ai/api/agents/{agentId}/trigger/{triggerId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "source": "slack",
  "allowedUserIds": [
    "<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>",
    "description": "<string>",
    "enabled": true,
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "secret": "<string>",
    "cronSchedule": "<string>",
    "emailAddress": "<string>",
    "config": {},
    "lastRunAttemptedAt": "<string>",
    "lastRunSucceededAt": "<string>"
  }
}

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
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
  • Option 6
name
string
required
source
enum<string>
required
Available options:
slack
description
string
allowedUserIds
string[]

Response

200 - application/json

Successful response

success
boolean
required
data
object
required