Upsert Agent Overlay
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/agents/example/overlay';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"modelId":"example","temperature":1,"maxTokens":1,"disabledSkills":["example"],"additionalSkills":["example"],"additionalTools":["example"],"disabledTools":["example"],"systemPromptAppend":"example","allowedCollections":["example"],"mcpServers":[{"server":"example","tools":["example"]}],"guardrailPreset":"official","longContext":true,"filterPolicies":["example"],"reasoningEffort":"low","version":1}'};
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/example/overlay \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "modelId": "example", "temperature": 1, "maxTokens": 1, "disabledSkills": [ "example" ], "additionalSkills": [ "example" ], "additionalTools": [ "example" ], "disabledTools": [ "example" ], "systemPromptAppend": "example", "allowedCollections": [ "example" ], "mcpServers": [ { "server": "example", "tools": [ "example" ] } ], "guardrailPreset": "official", "longContext": true, "filterPolicies": [ "example" ], "reasoningEffort": "low", "version": 1 }'Creates or replaces the per-organisation overlay for a global agent. PUT is full replacement — omitted optional fields are removed. Include version from a prior GET to enable compare-and-swap (409 on conflict). Omit for last-writer-wins.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
Global agent identifier
Request Bodyrequired
Section titled “Request Bodyrequired”object
Override the base agent’s model
Override temperature
Override max tokens
Global skill IDs to exclude
Org-owned skill IDs to add
Tool names to add
Tool names to remove
Text appended to base system prompt
Vector DB collections
Registered MCP servers to attach. The agent gets the tools of each server in dashboard chat and in QuantCode. The overlay PUT replaces the whole overlay: omit the field or send an empty array to remove 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.
Guardrail preset
Force the 1M context window on (true) or off (false) for this organisation. Omit or null to use the platform default.
Filter policy IDs applied to this agent’s requests for this organisation, with any organisation-wide mandatory policies
Override the reasoning effort. Must be one of the levels the effective model lists in capabilities.effortLevels. Omit or null to use the global agent value.
Current version for optimistic concurrency
Responses
Section titled “Responses”Overlay created or updated
object
object
Examplegenerated
{ "overlay": {}}Invalid request parameters
Access denied
Not a global agent
Version conflict — overlay was modified concurrently
Failed to save overlay
