Updates the custom agent's configuration.
Updates the custom agent's configuration and returns the saved agent.
Saves a new system prompt version if the prompt changes.
<Check title="Required Permissions" icon="key">The user must have manage access to the agent. Changing workspace sharing also requires permission to contribute to the agent library.</Check>
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
agentId
The agent id.
Request
The new agent configuration.
name
The name shown to users.
description
A short explanation of what the agent does.
workspaceAccessLevel
The access level granted to every member of the workspace.
reasoningLevel
The amount of reasoning the model uses.
systemPrompt
The instructions that control the agent's behavior.
webSearchEnabled
Whether web search is enabled.
aworkAccessEnabled
Whether awork access is enabled.
googleGenAiAccessEnabled
Whether Google image generation is enabled.
openAiImageGenerationAccessEnabled
Whether OpenAI image generation is enabled.
modelProvider
The model provider when no preset is selected.
modelName
The model name when no preset is selected.
presetKey
The workspace model preset to use.
Response
OK
id
The id of the entity.
createdOn
The date this entity was created.
createdBy
The id of the user who created this entity.
updatedOn
The date this entity was last modified.
updatedBy
The id of the user who last modified this entity.
type
The public agent type.
connectors
The linked connectors.
name
The name shown to users.
description
A short explanation of what the agent does.
currentSystemPromptVersionId
The current system prompt version.
modelProvider
The configured model provider when no preset is selected.
modelName
The configured model name when no preset is selected.
presetKey
The configured workspace model preset key.
reasoningLevel
The configured reasoning level.
systemPrompt
The current system prompt.
webSearchEnabled
Whether web search is enabled.
aworkAccessEnabled
Whether awork access is enabled.
googleGenAiAccessEnabled
Whether Google image generation is enabled.
openAiImageGenerationAccessEnabled
Whether OpenAI image generation is enabled.
skillIds
The skills linked to the agent.
hasImage
Whether the agent has a profile image.
isArchived
Whether the agent is archived.
workspaceAccessLevel
The workspace-wide access level.
accessLevel
The requesting user's access level.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error

