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

agentIdstringRequiredformat: "uuid"
The agent id.

Request

The new agent configuration.
namestringRequired1-255 characters
The name shown to users.
descriptionstringRequired<=25000 characters
A short explanation of what the agent does.
workspaceAccessLevelenumRequired
The access level granted to every member of the workspace.
reasoningLevelstringRequired>=1 character
The amount of reasoning the model uses.
systemPromptstringRequired<=25000 characters
The instructions that control the agent's behavior.
webSearchEnabledbooleanRequired
Whether web search is enabled.
aworkAccessEnabledbooleanRequired
Whether awork access is enabled.
googleGenAiAccessEnabledbooleanRequired
Whether Google image generation is enabled.
openAiImageGenerationAccessEnabledbooleanRequired
Whether OpenAI image generation is enabled.
modelProviderstring or nullOptional
The model provider when no preset is selected.
modelNamestring or nullOptional
The model name when no preset is selected.
presetKeystring or nullOptional
The workspace model preset to use.

Response

OK
idstringOptionalformat: "uuid"
The id of the entity.
createdOnstringOptionalformat: "date-time"
The date this entity was created.
createdBystringOptionalformat: "uuid"
The id of the user who created this entity.
updatedOnstringOptionalformat: "date-time"
The date this entity was last modified.
updatedBystringOptionalformat: "uuid"
The id of the user who last modified this entity.
typestring or nullOptional
The public agent type.
connectorslist of objects or nullOptional
The linked connectors.
namestring or nullOptional
The name shown to users.
descriptionstring or nullOptional
A short explanation of what the agent does.
currentSystemPromptVersionIdstring or nullOptionalformat: "uuid"
The current system prompt version.
modelProviderstring or nullOptional
The configured model provider when no preset is selected.
modelNamestring or nullOptional
The configured model name when no preset is selected.
presetKeystring or nullOptional
The configured workspace model preset key.
reasoningLevelstring or nullOptional
The configured reasoning level.
systemPromptstring or nullOptional
The current system prompt.
webSearchEnabledbooleanOptional
Whether web search is enabled.
aworkAccessEnabledbooleanOptional
Whether awork access is enabled.
googleGenAiAccessEnabledbooleanOptional
Whether Google image generation is enabled.
openAiImageGenerationAccessEnabledbooleanOptional
Whether OpenAI image generation is enabled.
skillIdslist of strings or nullOptional
The skills linked to the agent.
hasImagebooleanOptional
Whether the agent has a profile image.
isArchivedbooleanOptional
Whether the agent is archived.
workspaceAccessLevelenum or nullOptional

The workspace-wide access level.

accessLevelenumOptional
The requesting user's access level.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error