Update Agent
Update an existing agent. If a new iconUrl is provided, the server will fetch the icon from the external URL, upload it to R2 storage, and delete the old icon. The response will contain the new R2 URL.
Path parameters
The unique identifier
Request body
Example request
{
"agent": {
"platform": "agent0",
"url": "https://agent0.example.com/agents/abc123"
}
}Response
Agent updated successfully
Example response
{
"agent": {
"agent": {
"platform": "agent0",
"url": "https://agent0.example.com/agents/abc123"
}
}
}Changes
Changed in 3 of the 11 revisions of this API.334
- ○
added the non-success response with the status
403response-non-success-status-added
- ○
added the optional property
agent/developerIdto the response with the200statusresponse-optional-property-added
- ○
- ▲
the
coderesponse property const valueINTERNAL_SERVER_ERRORwas removed for the status500response-property-const-removed
- ▲
the
coderesponse property const valueNOT_FOUNDwas removed for the status404response-property-const-removed
- ▲
the
coderesponse property const valueUNAUTHORIZEDwas removed for the status401response-property-const-removed
- ●
added the new
INTERNAL_SERVER_ERRORenum value to thecoderesponse property for the response status500response-property-enum-value-added
- ●
added the new
NOT_FOUNDenum value to thecoderesponse property for the response status404response-property-enum-value-added
- ●
added the new
UNAUTHORIZEDenum value to thecoderesponse property for the response status401response-property-enum-value-added
- ○
api operation id
putApiV1AgentsByIdremoved and replaced withapi-operation-id-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○