Skip to content

Discard a draft

DELETE/api/public/v1/aip/drafts/{public_id} beta

A never-ratified draft is deleted with its intent policies; an edit draft loses only its draft version, and the live AIP keeps enforcing. Either way the draft's jobs go with it: a running one stops, so it spends nothing more. 204, with no body.

Terminal window
curl --fail-with-body -X DELETE 'https://app.openlatch.ai/api/public/v1/aip/drafts/<draft_public_id>' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Role in the organizationThis endpoint
ownerAllowed
adminAllowed
editorAllowed
viewerNot allowed

A key carries the role its owner holds in the organization. See Authentication.

API key scope: aip:write

ParameterTypeDescription
public_idstringRequired.
ParameterTypeDescription
Idempotency-Keystring or nullOptional. Makes the request safe to retry: the same key and the same request, within 24 hours, returns the stored response with Idempotent-Replayed: true and runs once.