Skip to Content
Agents

Update agent metadata

Permissionagents:updateAuthentication
PATCH
/agents/{id}

Renames the agent. Same-value patches are successful semantic no-ops and retain the current revision and ETag.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Request Body

application/json
  1. body
name*string
Length1 <= length <= 200

Response Body

Success

application/json
  1. response
id*string
Formatuuid
name*string
updated*boolean

False when the trimmed name already matched.

revision*integer
Formatint64
Range1 <= value
updated_at*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.kejue.co/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{  "name": "Billing and Payments Assistant"}'
Example Response
{  "id": "11111111-1111-4111-8111-111111111111",  "name": "Billing and Payments Assistant",  "updated": true,  "revision": 2,  "updated_at": "2026-07-20T09:05:00Z"}