Skip to main content
PUT
Update agent

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-workspace-id
string
header
required

Workspace UUID. Required on all /api/* endpoints.

Path Parameters

id
string<uuid>
required

Body

application/json

Update an AI agent configuration

name
string
Minimum string length: 1
role
string
model
string
instructions
string | null
isActive
boolean
knowledgeDocs
any[]
toolIds
string[]
handoffDescription
string | null
tone
string
answerLength
string

Response

Agent updated

{key}
any