Aller au contenu

Abandonner un brouillon

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.

Fenêtre de terminal
curl --fail-with-body -X DELETE 'https://app.openlatch.ai/api/public/v1/aip/drafts/<draft_public_id>' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Rôle dans l’organisationCe point de terminaison
ownerAutorisé
adminAutorisé
editorAutorisé
viewerNon autorisé

Une clé porte le rôle que son propriétaire détient dans l’organisation. Voir Authentification.

Portée de clé d’API : aip:write

ParamètreTypeDescription
public_idstringObligatoire.
ParamètreTypeDescription
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.