Skip to main content
PATCH
/
ai-agents
/
{agent_id}
Update AI Agent
curl --request PATCH \
  --url https://api.wacht.dev/ai-agents/{agent_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "model": "<string>",
  "system_prompt": "<string>",
  "temperature": 1,
  "max_tokens": 123,
  "tools": [
    "<string>"
  ],
  "knowledge_bases": [
    "<string>"
  ],
  "is_active": true
}'
{
  "id": "<string>",
  "name": "Customer Support Agent",
  "description": "AI agent for handling customer support inquiries",
  "model": "gpt-4",
  "system_prompt": "<string>",
  "temperature": 0.7,
  "max_tokens": 1000,
  "tools": [
    "<string>"
  ],
  "knowledge_bases": [
    "<string>"
  ],
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

agent_id
string
required

Body

application/json
name
string
description
string
model
string
system_prompt
string
temperature
number
Required range: 0 <= x <= 2
max_tokens
integer
tools
string[]
knowledge_bases
string[]
is_active
boolean

Response

id
string
name
string
Example:
description
string
Example:
model
string
Example:
system_prompt
string
temperature
number
Required range: 0 <= x <= 2
Example:
max_tokens
integer
Example:
tools
string[]
knowledge_bases
string[]
is_active
boolean
Example:
created_at
string<date-time>
updated_at
string<date-time>