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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
draft_id | path | string | Yes | |
project | query | string | Yes | The project the call is about. Every route is scoped to one. |
Pod-Organisation | header | string | No | The organization, for a person who belongs to several. An API key's organization is its own, and a different one here is forbidden. |
Idempotency-Key | header | string | No | Makes 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.