Policy Engine

Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it.

delete/v2/policy-engine/policies/{policyId}

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

policyId, string required

The ID of the policy to delete.

Query parameters

groupType, 'project' | 'entity'

Whether policy operations use the entity ID or the project ID from the caller's credential.

Selects whether this request uses the entity ID or the project ID from the caller's credential as the policy group for lookups, writes, and simulation. Defaults to project. Use entity for the policies of an entity's custodial accounts. This is independent of a policy's scope, which says whether a policy applies to a single account or to the whole project.

Headers

X-Idempotency-Key, string

An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.

Response

Successfully deleted policy.

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    5 more changes in this revision