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
Response
Draft committed synchronously.
Example response
{
"status": true
}