Skip to main content
PATCH
/
api
/
agents
/
triggers
/
{id}
Update agent trigger
curl --request PATCH \
  --url https://app.dacard.ai/api/agents/triggers/{id} \
  --header 'Content-Type: application/json' \
  --cookie __session= \
  --data '
{
  "name": "<string>",
  "enabled": true,
  "conditionType": "schedule",
  "conditionConfig": {
    "cron": "<string>",
    "threshold": 123,
    "dropPercent": 123,
    "signalTypes": [
      "<string>"
    ]
  },
  "actionConfig": {
    "autoRun": true,
    "notifySlack": true
  }
}
'
{
  "data": {}
}

Authorizations

__session
string
cookie
required

Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.

Path Parameters

id
string<uuid>
required

Body

application/json
name
string
enabled
boolean
conditionType
enum<string>
Available options:
schedule,
score_threshold,
score_drop,
new_integration_signal,
manual
conditionConfig
object

Condition-specific configuration

actionConfig
object

What to do when the trigger fires

Response

Trigger updated

data
object