Skip to main content
PATCH
/
api
/
agents
/
{id}
Update agent definition
curl --request PATCH \
  --url https://app.dacard.ai/api/agents/{id} \
  --header 'Content-Type: application/json' \
  --cookie __session= \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "status": "active",
  "config": {
    "schedule": "<string>",
    "notifySlack": true,
    "productIds": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ]
  }
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "updated": true
  }
}

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
description
string
status
enum<string>
Available options:
active,
paused
config
object

Agent-specific configuration (schedule, thresholds, notification settings)

Response

Agent updated

data
object