Update Agent
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/agents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","group":"example","systemPrompt":"example","temperature":1,"modelId":"example","maxTokens":1,"allowedTools":["example"],"allowedCollections":["example"],"assignedSkills":["example"],"longContext":true,"reasoningEffort":"low","guardrailPreset":"official","mcpServers":[{"server":"example","tools":["example"]}],"filterPolicies":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/agents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "group": "example", "systemPrompt": "example", "temperature": 1, "modelId": "example", "maxTokens": 1, "allowedTools": [ "example" ], "allowedCollections": [ "example" ], "assignedSkills": [ "example" ], "longContext": true, "reasoningEffort": "low", "guardrailPreset": "official", "mcpServers": [ { "server": "example", "tools": [ "example" ] } ], "filterPolicies": [ "example" ] }'Updates an existing AI agent configuration. All fields except agentId, organizationId, createdAt, and createdBy can be updated.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
The agent ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Skill IDs to assign to this agent
Enable 1M context window support
Reasoning effort (Anthropic effort). Must be one of the levels the model lists in capabilities.effortLevels. Unset uses the caller or model default. null clears it.
Guardrail preset name
Registered MCP servers to attach. The agent gets the tools of each server in dashboard chat and in QuantCode. On update, an empty array removes every attachment.
object
The registered server name
Optional. Only these tools of the server. Omit for every tool the server allows; an empty array allows none.
Filter policy IDs to apply to this agent’s inference requests
Responses
Section titled “Responses”Agent updated successfully
object
object
Example
{ "success": true, "message": "Agent updated successfully"}Invalid request parameters
Access denied
Agent not found
Failed to update agent
