Archives or unarchives the specified custom agent and returns its updated configuration. Set IsArchived to true to archive the agent, or false to unarchive it.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
agentIdstringRequiredThe agent id.
Request body Required
Whether to archive or unarchive the agent.
application/json
isArchivedbooleanRequiredWhether the agent should be archived.
Responses
200 OK
application/json
idstringOptionalThe id of the entity.
createdOnstringOptionalThe date this entity was created.
createdBystringOptionalThe id of the user who created this entity.
updatedOnstringOptionalThe date this entity was last modified.
updatedBystringOptionalThe id of the user who last modified this entity.
typestring or nullOptionalThe public agent type.
connectorsarray of object or nullOptionalThe linked connectors.
Show 5 properties
idstringOptionalThe linked connector identifier.
namestring or nullOptionalThe connector name.
statusstring or nullOptionalAlways pending in this shared response. It does not indicate whether an account is connected. Read the agent's configuration endpoint for the current user's connection status.
connectionModestring or nullOptionalHow the agent chooses an account: actingUser lets each user supply their own; specificConnection uses the editor-provided account for everyone.
connectionIdstring or nullOptionalThe editor-provided account id in specificConnection mode; otherwise null.
namestring or nullOptionalThe name shown to users.
descriptionstring or nullOptionalA short explanation of what the agent does.
currentSystemPromptVersionIdstring or nullOptionalThe current system prompt version.
modelProviderstring or nullOptionalThe configured model provider when no preset is selected.
modelNamestring or nullOptionalThe configured model name when no preset is selected.
presetKeystring or nullOptionalThe configured workspace model preset key.
reasoningLevelstring or nullOptionalThe configured reasoning level.
systemPromptstring or nullOptionalThe current system prompt.
webSearchEnabledbooleanOptionalWhether web search is enabled.
aworkAccessEnabledbooleanOptionalWhether awork access is enabled.
googleGenAiAccessEnabledbooleanOptionalWhether Google image generation is enabled.
openAiImageGenerationAccessEnabledbooleanOptionalWhether OpenAI image generation is enabled.
skillIdsarray of string or nullOptionalThe skills linked to the agent.
hasImagebooleanOptionalWhether the agent has a profile image.
isArchivedbooleanOptionalWhether the agent is archived.
workspaceAccessLevelstring or nullOptionalAllowed: "read" "manage"
The workspace-wide access level.
hasAdminAccessOnlybooleanOptionalWhether the agent is visible only through workspace administration access.
accessLevelstringOptionalAllowed: "read" "manage"
The requesting user's access level.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
401 Unauthorized
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.