Agents
Point staging at a version
Permission
agents:promoteAuthenticationPUT
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.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
version_id*stringFormat
uuidSuccess
application/json- response
agent_id*stringFormat
uuidstaging_version_id*stringFormat
uuidupdated*booleanFalse when staging already referenced version_id.
revision*integerFormat
int64Range
1 <= valueupdated_at*stringAggregate update timestamp corresponding to revision.
Format
date-timecurl -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"}