Update Agent
Path parameters
Path parameter agent_id
Headers
Request body
Example request
{
"version": 1,
"system": "You are a general-purpose agent that can research, write code, run commands, and use connected tools to complete the user's task end to end."
}Response
Successful response (OK)
Example response
{
"type": "agent",
"id": "agent_011CZkYpogX7uDKUyvBTophP",
"version": 1,
"name": "My First Agent",
"description": "A general-purpose starter agent.",
"model": {
"id": "claude-opus-5",
"speed": "standard"
},
"system": "You are a general-purpose agent that can research, write code, run commands, and use connected tools to complete the user's task end to end.",
"tools": [
{
"type": "agent_toolset_20260401",
"default_config": {
"enabled": true,
"permission_policy": {
"type": "always_ask"
}
},
"configs": []
}
],
"mcp_servers": [
{
"type": "url",
"name": "example-mcp",
"url": "https://example-server.modelcontextprotocol.io/sse"
}
],
"skills": [
{
"type": "anthropic",
"skill_id": "xlsx",
"version": "1"
},
{
"type": "custom",
"skill_id": "skill_011CZkZFNu9hAbo3jZPRgTlx",
"version": "2"
}
],
"multiagent": null,
"metadata": {
"foo": "bar"
},
"created_at": "2026-03-15T10:00:00Z",
"updated_at": "2026-03-15T10:00:00Z",
"archived_at": null
}Changes
Changed in 14 of the 68 revisions of this API.28755
- ○
added
subschema #2to the/////////request propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #2to the//////request propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #2to the/response propertyanyOflist for the response statusresponse-property-any-of-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
added to the
///////response propertyoneOflist for the response statusresponse-property-one-of-added
- ▲
removed the required property
////////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
////////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
////////from the response with the statusresponse-required-property-removed
- ●
removed the request property
/////////request-property-removed
- ●
removed the request property
/////////request-property-removed
- ●
removed the request property
/////////request-property-removed
- ○
added discriminator to
////////request propertyrequest-property-discriminator-added
- ○
added to the
////////request propertyoneOflistrequest-property-one-of-added
- ○
added discriminator to
///////response property for the response statusresponse-property-discriminator-added
- ▲
- ▲
the request property
became not nullablerequest-property-became-not-nullable
- ▲
the request property
became not nullablerequest-property-became-not-nullable
- ▲
the request property
became not nullablerequest-property-became-not-nullable
- ▲
the request property
/////////became not nullablerequest-property-became-not-nullable
- ▲
the request property
/////////became not nullablerequest-property-became-not-nullable
- ▲
the request property
/////////became not nullablerequest-property-became-not-nullable
- ▲
the request property
became not nullablerequest-property-became-not-nullable
- ▲
the request property
became not nullablerequest-property-became-not-nullable
- ▲
the request property
became not nullablerequest-property-became-not-nullable
- ▲
the request property
became not nullablerequest-property-became-not-nullable
- ▲
response property
descriptionlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
systemlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ●
removed from the
/////////request propertyallOflistrequest-property-all-of-removed
- ●
removed from the
request propertyallOflistrequest-property-all-of-removed
- ●
removed from the
/////////request propertyallOflistrequest-property-all-of-removed
- ○
added
subschema #2to the/////////request propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #2to therequest propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #2to the/////////request propertyanyOflistrequest-property-any-of-added
- ○
request property
list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
/////////list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
removed from the
response propertyallOflist for the response statusresponse-property-all-of-removed
- ○
removed from the
response propertyallOflist for the response statusresponse-property-all-of-removed
- ○
added
subschema #2to theresponse propertyanyOflist for the response statusresponse-property-any-of-added
- ○
added
subschema #2to theresponse propertyanyOflist for the response statusresponse-property-any-of-added
- ▲
- ▲
added to the
//////////response propertyoneOflist for the response statusresponse-property-one-of-added
- ▲
the
//////////response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
removed the required property
///////////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
///////////from the response with the statusresponse-required-property-removed
- ▲
removed the required property
///////////from the response with the statusresponse-required-property-removed
- ○
added the new optional request property
/////////new-optional-request-property
- ○
added
advisordiscriminator mapping keys to the///////////request propertyrequest-property-discriminator-mapping-added
- ○
added to the
///////////request propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added discriminator to
//////////response property for the response statusresponse-property-discriminator-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed
subschema #4subschema #5subschema #6subschema #10subschema #11from the/////////request propertyanyOflistrequest-property-any-of-removed
- ▲
removed
subschema #4subschema #5subschema #6subschema #10subschema #11from the//////request propertyanyOflistrequest-property-any-of-removed
- ○
added
subschema #4subschema #5subschema #6subschema #7subschema #11subschema #12to the/////////request propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #4subschema #5subschema #6subschema #7subschema #11subschema #12to the//////request propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #4subschema #5subschema #6subschema #7subschema #11subschema #12to the/response propertyanyOflist for the response statusresponse-property-any-of-added
- ○
removed
subschema #4subschema #5subschema #6subschema #10subschema #11from the/response propertyanyOflist for the response statusresponse-property-any-of-removed
- ▲
- ○
added the new optional request property
/////////new-optional-request-property
- ○
the request property
became optionalrequest-property-became-optional
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the
//////request property's maxLength was increased from1024to4096request-property-max-length-increased
- ○
- ○
added
subschema #2to the/////////request propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #2to the//////request propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #2to the/response propertyanyOflist for the response statusresponse-property-any-of-added
- ○
- ○
added
subschema #2to the/////////request propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #2to the//////request propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #2to the/response propertyanyOflist for the response statusresponse-property-any-of-added
- ○
- ▲
the request property
///////////became not nullablerequest-property-became-not-nullable
- ▲
the request property
///////////became requiredrequest-property-became-required
- ▲
the
request property const valueobjectwas addedrequest-property-const-added
- ▲
removed the enum value
objectof the request property///////////request-property-enum-value-removed
- ▲
response property
tools/items/oneOf[BetaManagedAgentsCustomTool]/input_schema/requiredlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ●
removed from the
///////////request propertyallOflistrequest-property-all-of-removed
- ○
added
subschema #1subschema #2to the///////////request propertyanyOflistrequest-property-any-of-added
- ○
request property
///////////list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
removed from the
///////response propertyallOflist for the response statusresponse-property-all-of-removed
- ○
added
subschema #1subschema #2to the///////response propertyanyOflist for the response statusresponse-property-any-of-added
- ○
the response property
///////became required for the statusresponse-property-became-required
- ○
the
response property const valueobjectwas added for the statusresponse-property-const-added
- ○
removed the
objectenum value from the///////response property for the response statusresponse-property-enum-value-removed
- ▲