Skip to main content
DELETE
Discard a stack draft

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

cluster_id
string<uuid>
required
draft_id
string<uuid>
required

Query Parameters

force
boolean
default:false

Discard even a draft an AI chat is bound to or has just written.

Response

Draft discarded, already discarded, or protected

success
boolean
required
stack_name
string | null
required
already_discarded
boolean
required

True when this call discarded nothing: the draft was already gone, or it is protected.

reason
string | null
required

USER_DISCARD for a discard by a person, protected for a draft the guard kept, or the reason recorded when the draft ended earlier.