dots.v2.genAi.agents.byAgent_uuId().put()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.genAi.agents.byAgent_uuId(agent_uuId).put(body: ApiUpdateAgentInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiUpdateAgentOutput>Description
To update an agent, send a PUT request to /v2/gen-ai/agents/{uuid}. The response body is a JSON object containing the agent.
Parameters
Path Parameters
agent_uuIdstring requiredExample:
"123e4567-e89b-12d3-a456-426614174000"Unique agent id
Request Body
agentLogInsightsEnabledboolean optionalExample:
trueallowedDomainsarray of strings optionalExample:
["example string"]Optional list of allowed domains for the chatbot - Must use fully qualified domain name (FQDN) such as https://example.com
anthropicKeyUuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Optional anthropic key uuid for use with anthropic models
clearMcpServersboolean optionalExample:
trueWhen true, removes all MCP servers from the agent. Use this instead of sending an empty mcp_servers array.
conversationLogsEnabledboolean optionalExample:
trueOptional update of conversation logs enabled
descriptionstring optionalExample:
"My Agent Description"Agent description
instructionstring optionalExample:
"You are an agent who thinks deeply about the world"Agent instruction. Instructions help your agent to perform its job effectively. See Write Effective Agent Instructions for best practices.
kinteger optionalExample:
5How many results should be considered from an attached knowledge base
maxTokensinteger optionalExample:
100Specifies the maximum number of tokens the model can process in a single input or output, set as a number between 1 and 512. This determines the length of each response.
mcpServersarray of objects optionalMCP (Model Context Protocol) servers to attach to the agent
Show child properties
allowedToolsarray of strings optionalExample:
["example string"]Optional list of allowed tool names to expose from this server
authorizationstring optionalExample:
example stringOptional authorization header value for the MCP server
headersobject optionalOptional additional headers to send to the MCP server
serverLabelstring optionalExample:
example stringA label identifying this MCP server
serverUrlstring optionalExample:
example stringThe URL of the MCP server
modelProviderKeyUuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Optional Model Provider uuid for use with provider models
modelRouterUuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"modelUuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Identifier for the foundation model.
namestring optionalExample:
"My New Agent Name"Agent name
openAiKeyUuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Optional OpenAI key uuid for use with OpenAI models
projectIdstring optionalExample:
"12345678-1234-1234-1234-123456789012"The id of the DigitalOcean project this agent will belong to
provideCitationsboolean optionalExample:
truereasoningEffortstring optionalExample:
"low"retrievalMethodstring optional- RETRIEVAL_METHOD_UNKNOWN: The retrieval method is unknown
- RETRIEVAL_METHOD_REWRITE: The retrieval method is rewrite
- RETRIEVAL_METHOD_STEP_BACK: The retrieval method is step back
- RETRIEVAL_METHOD_SUB_QUERIES: The retrieval method is sub queries
- RETRIEVAL_METHOD_NONE: The retrieval method is nonerouterPresetSlugstring optionalExample:
"general"tagsarray of strings optionalExample:
["example string"]A set of abitrary tags to organize your agent
temperaturenumber optionalExample:
0.7Controls the model’s creativity, specified as a number between 0 and 1. Lower values produce more predictable and conservative responses, while higher values encourage creativity and variation.
thinkingTokenBudgetinteger optionalExample:
123topPnumber optionalExample:
0.9Defines the cumulative probability threshold for word selection, specified as a number between 0 and 1. Higher values allow for more diverse outputs, while lower values ensure focused and coherent responses.
uuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Unique agent id
webFetchEnabledboolean optionalExample:
trueOptional. Set to true to let the agent use the built-in web_fetch tool to retrieve content from public web pages, or false to disable it.
webSearchEnabledboolean optionalExample:
trueOptional. Set to true to let the agent use the built-in web_search tool to search the public web for current information, or false to disable it.
Request Sample
Response Example
More Information
See /v2/gen-ai/agents/{uuid} in the API reference for additional detail on responses, headers, parameters, and more.