v45

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

Discard a draft

Deprecated on the v2 branch model. Migrate to DELETE /agent/{id}/branches/{branchId}/draft. When ENABLE_BRANCH_MODEL is on, this endpoint returns 409 versioning_v2_migration_required with the Deprecation: true header. See the migration guide.

Discard (soft-delete) a draft. Only the draft creator or an admin can discard.

delete/agent/{id}/drafts/{draftId}

Path parameters

idstring required

The agent ID.

draftIdstring required

The draft ID

Response

Draft discarded successfully

statusboolean
{"stackTrail":"paths:/agent/{id}/drafts/{draftId}:delete:responses:200:content:application/json:schema:properties:data","oasType":"schema","type":"unknown"}

Example response

{
  "status": true
}