Deploy staging to production
Atomically points production at the current staging snapshot.
Everything is revalidated before activation
The complete stored snapshot and its after-call dependencies are re-checked against the current catalog and baseline budget — including for a semantic no-op, so a version that has since become invalid cannot go live.
If production already references that snapshot, a valid request preserves the aggregate revision.
Pair each new logical intent with a new Idempotency-Key and the latest agent If-Match value.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidIdempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255If-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
Success
application/json- response
agent_id*stringuuidproduction_version_id*stringuuidupdated*booleanFalse when production already referenced the staging snapshot.
revision*integerint641 <= valueupdated_at*stringAggregate update timestamp corresponding to revision.
date-timecurl -X POST 'https://api.kejue.co/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/deploy' \ -H 'Idempotency-Key: string'{ "agent_id": "11111111-1111-4111-8111-111111111111", "production_version_id": "33333333-3333-4333-8333-333333333333", "updated": true, "revision": 5, "updated_at": "2026-07-20T09:25:00Z"}