Delete a named policy
People only, with a fresh second factor.
DELETE/v1/policies/{policy_id}
People only, with a fresh second factor. Only a named policy can be deleted, and only while no sandbox runs under it and no other policy narrows it (conflict otherwise).
For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with person_required.
Request
curl -X DELETE "https://api.pod.mapier.ai/v1/policies/example?project=example" \
-H "Authorization: Bearer $POD_PERSON_TOKEN"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
policy_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. Deleted.
Errors
The refusals this call is known for: unauthorized, person_required, 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.