Agent Versioning - Drafts
Publish a draft
Deprecated on the v2 branch model. Migrate to POST /agent/{id}/branches/{branchId}/draft/publish. When ENABLE_BRANCH_MODEL is on, this endpoint returns 409 versioning_v2_migration_required with the Deprecation: true header. See the migration guide.
Publish a draft as a new versioned release. Optionally activate it immediately.
post/agent/{id}/drafts/{draftId}/publish
Path parameters
idstring required
The agent ID.
draftIdstring required
The draft ID
Request body
Response
Draft published as a new version
Example response
{
"status": true
}