v45

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0114775543.6 KB
Agent Versioning - Branches

Publish draft

Publish the open draft on this branch as a new revision.

The response is 200 with state: "committed" when the security scan finishes synchronously, and 202 with state: "scanning" when the scan is deferred. A scanning revision is visible in history but cannot be restored or made live until it becomes committed. If the scan fails, the revision is left in scanning state and this endpoint returns 409 on subsequent publishes until the scan is retried.

Publishing on the live branch pushes to production immediately.

post/agent/{id}/branches/{branchId}/draft/publish

Path parameters

idstring required

The agent ID.

branchIdstring required

The branch ID.

Request body

labelstring nullable

Optional label saved on the committed revision.

Response

Draft committed synchronously.

statusboolean

Example response

{
  "status": true
}