Skip to main content
PUT
/
api
/
agents
/
{agent_id}
Update Agent
curl --request PUT \
  --url https://api.example.com/api/agents/{agent_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "instructions": "<string>",
  "execution_mode": "<string>",
  "models": {},
  "knowledge_bases": [
    "<string>"
  ],
  "skills": [
    "<string>"
  ],
  "tool_categories": [
    "<string>"
  ],
  "suggested_prompts": [
    "<string>"
  ],
  "logo_base64": "<string>"
}
'
{
  "id": 123,
  "user_id": 123,
  "name": "<string>",
  "description": "<string>",
  "instructions": "<string>",
  "execution_mode": "<string>",
  "models": {},
  "knowledge_bases": [
    "<string>"
  ],
  "skills": [
    "<string>"
  ],
  "tool_categories": [
    "<string>"
  ],
  "suggested_prompts": [
    "<string>"
  ],
  "logo_url": "<string>",
  "status": "<string>",
  "published_at": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
integer
required

Body

application/json

Request model for updating an agent.

name
string | null
Required string length: 1 - 200
description
string | null
instructions
string | null
execution_mode
string | null

Execution mode: simple, react, or graph

models
Models · object
knowledge_bases
string[] | null
skills
string[] | null
tool_categories
string[] | null
suggested_prompts
string[] | null

Suggested prompt examples for users

logo_base64
string | null

Response

Successful Response

Response model for agent data.

id
integer
required
user_id
integer
required
name
string
required
description
string | null
required
instructions
string | null
required
execution_mode
string
required
models
Models · object
required
knowledge_bases
string[]
required
skills
string[]
required
tool_categories
string[]
required
suggested_prompts
string[]
required
logo_url
string | null
required
status
string
required
published_at
string | null
required
created_at
string
required
updated_at
string
required