Update agent
Partially update a custom agent. The API key user must be the creator, a contributor, or an Inspect admin. Only provided fields are changed.
Partially update a custom agent. The API key user must be the creator, a contributor, or an Inspect admin. Only provided fields are changed.
bearerAuthAuthorizationBearer <token>API key authentication. Use your API key as the bearer token.
agent_id*stringAgent ID
application/json- body
At least one field must be provided.
1 <= propertiesname?stringDisplay name of the agent. Leading and trailing whitespace is trimmed.
1 <= length <= 100description?stringDescription of what this agent does
prompt?|System prompt, or null to clear it
length <= 100000model?|Preferred model, or null to use the default. Any string up to 200 characters is stored; it is not checked against the model list.
length <= 200skills?array<>|Configured skill names, or null for no explicit skill list
capabilities?|Capability overrides, or null to restore defaults
prompt_context_mode?Agents.PromptContextModeWhether the custom prompt appends to or replaces the base system prompt
"append""replace"repositories?array<>|Workspace allowlist containing configured workspace IDs; null means unrestricted
repo_hint?|Optional default repository hint
length <= 500Custom agent updated
application/json- response
data*Full agent configuration for a single ID. Includes fields not present on the list-agents response.
curl -X PATCH 'https://your-org.inspect.com/api/public/v1/agents/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "prompt": "string", "created_by": "string", "skills": [ "string" ], "capabilities": { "edit": true, "git_write": true, "browser": true, "user_skills": true, "repo_skills": true, "datadog": true, "customer_data_access": true, "notion": true, "inspect_sessions": true, "web_search": true, "artifacts": true, "tools": {}, "linear": true, "feature_flags": true, "zendesk": true, "sentry": true, "deepwiki": true }, "prompt_context_mode": "append", "repositories": [ "string" ], "repo_hint": "string", "id": "string", "name": "string", "description": "string", "model": "string", "is_builtin": true, "created_at": "2019-08-24T14:15:22Z" }}