Ir al contenido

Descartar un borrador

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.

Ventana 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"
Rol en la organizaciónEste punto de conexión
ownerPermitido
adminPermitido
editorPermitido
viewerNo permitido

Una clave tiene el rol que su propietario ocupa en la organización. Consulte Autenticación.

Ámbito de la clave de API: aip:write

ParámetroTipoDescripción
public_idstringObligatorio.
ParámetroTipoDescripción
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.