Skip to main content
PATCH
/
ai-agents
/
agent-builder
/
agents
/
{uid}
/
tools
/
{slug}
/
actions
/
remove
Remove actions for a tool
curl --request PATCH \
  --url https://{appid}.api-{region}.cometchat.io/v3/ai-agents/agent-builder/agents/{uid}/tools/{slug}/actions/remove \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "actions": [
    "send-email",
    "draft-email",
    "read-emails"
  ]
}
'
{
  "success": true
}

Authorizations

apikey
string
header
required

API Key (i.e. Rest API Key from the Dashboard).

Path Parameters

uid
string
required

AI Agent UID

slug
string
required

Tool slug (e.g., gmail, googlesheets)

Body

application/json
actions
string[]
required

Array of action names to add or remove

Example:
["send-email", "draft-email", "read-emails"]

Response

200 - application/json

Actions removed successfully

The response is of type object.