Skip to Content
Agents

Point staging at a version

Permissionagents:promoteAuthentication
PUT
/agents/{id}/staging

Points staging at an existing immutable version owned by this agent.

Everything is revalidated before the pointer moves

The complete stored agent and after-call configuration are re-checked against the current active catalog, transfer targets, provider constraints, topology policy and baseline budget.

Validation also runs when selecting the version staging already points at. A valid semantic no-op preserves the aggregate revision.

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
version_id*string
Formatuuid

Response Body

Success

application/json
  1. response
agent_id*string
Formatuuid
staging_version_id*string
Formatuuid
updated*boolean

False when staging already referenced version_id.

revision*integer
Formatint64
Range1 <= value
updated_at*string

Aggregate update timestamp corresponding to revision.

Formatdate-time
Example Request
curl -X PUT 'https://api.kejue.co/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/staging' \  -H 'Content-Type: application/json' \  -d '{  "version_id": "33333333-3333-4333-8333-333333333333"}'
Example Response
{  "agent_id": "11111111-1111-4111-8111-111111111111",  "staging_version_id": "33333333-3333-4333-8333-333333333333",  "updated": true,  "revision": 8,  "updated_at": "2026-07-20T10:00:00Z"}