Skip to main content
DELETE
/
policies
/
{policy_id}
Delete a policy
curl --request DELETE \
  --url https://api.platform.dakota.xyz/policies/{policy_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "signatures": [
    "LS0tLS1CRUdJ...0tLS0tCg=="
  ],
  "intent": {
    "type": "delete_policy",
    "policy_id": "pol_2N4YkKpKu7M3mKpGYmF8kcJ8oZT",
    "idempotency_key": "idem_2N4YkKpKu7M3mKpGYmF8kcJ8oZT"
  }
}
'
{
  "type": "https://docs.dakota.xyz/api-reference/errors#invalid-request",
  "title": "Invalid request",
  "status": 400,
  "detail": "Invalid request",
  "instance": "https://api.platform.dakota.xyz/policies/example-id",
  "request_id": "req_01hzy6y7v8w9x0y1z2a3b4c5d6"
}

Authorizations

x-api-key
string
header
required

Headers

x-idempotency-key
string<uuid>
required

Unique key to ensure request idempotency. If the same key is used within a certain time window, the original response will be returned instead of executing the request again.

Path Parameters

policy_id
string
required

Unique identifier of the policy

Body

application/json
signatures
string[]
required

List of signatures over the intent

Cryptographic signature of the endorsement base64 encoded

intent
object
required

The intent being endorsed

Response

Policy deleted successfully