Discard a draft

Discarding takes nothing away from any policy, so it is open to whoever may ask for a draft.

DELETE/v1/drafts/{draft_id}

Discarding takes nothing away from any policy, so it is open to whoever may ask for a draft.

A key with the permissions:write scope.

Request

curl -X DELETE "https://api.pod.mapier.ai/v1/drafts/example?project=example" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
draft_idpathstringYes
projectquerystringYesThe project the call is about. Every route is scoped to one.
Pod-OrganisationheaderstringNoThe organization, for a person who belongs to several. An API key's organization is its own, and a different one here is forbidden.
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Answer

204. Discarded.

Errors

The refusals this call is known for: unauthorized, forbidden, not_found, conflict. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.