Update an agent
Updates an agent. For normal custom agents, keep or set connectionProvider to native. Do not switch a native custom agent to claudeManaged unless the user explicitly asks for Anthropic/Claude Managed.
/agents/{id}AuthorizationOAuth2 access token · headerrequiredapi:writeAuthorizationBearer token (JWT) · headerrequiredidstringrequiredfieldsToReturnstringComma-separated list of top-level response fields to return. Overrides the endpoint compact default unless responseShape=full is used.
responseShapestringAdvanced override. Omit for the endpoint compact default. Use full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
compactfullLT-Response-ShapestringAdvanced override. Set to full only when you need the complete endpoint response, including nested fields that are not selectable with fieldsToReturn.
fullapplication/jsonavatarConfigobjectGenerated avatar configuration JSON.
connectionProviderstringOptional agent connection provider. Keep or set native for normal custom agents running on Leadtime internal agent engine. Use selfHosted for external wrappers/webhooks, cursorCloud for Cursor Cloud, or devin for Devin.
selfHostedclaudeManagedcursorClouddevingeminiManagedgeminiAgentRuntimenativenamestringAgent display name. Omit to keep the current name.
nativeConfigobjectOptional native custom-agent config for connectionProvider=native. Instructions and selected workspace skills can also be configured later through /agents/{id}/native.
removeAvatarbooleanWhen true, removes the agent avatar image.
roleIdstringRole id to assign. Omit to keep the current role.
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions