Skip to main content

Endpoint

Authentication

Requires a Personal API Access Token.

Request

Headers

Path Parameters

Request Body

Full JSON Body Example

Request Body Fields

operationMetadata
Note: The order field is not used for delete operations.

EnumPolicyTargetScope

  • ALL - Delete policy from all endpoints
  • ENDPOINT - Delete policy only from specified endpoint

EnumPolicyTargetPipeline

  • REQUEST - Delete from request pipeline
  • RESPONSE - Delete from response pipeline
  • ERROR - Delete from error pipeline

EnumHttpRequestMethod

  • GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, ALL
Note: When targetScope is ENDPOINT, both targetEndpoint and targetEndpointHTTPMethod are required.

Response

Success Response (200 OK)

If deploy: true is set in the request, the response includes deployment result:

Response Fields

Deployment Result Object (deploymentResult)

Deployment Detail Object (detailList item)

EnumStatus

  • SUCCESS - Operation successful
  • FAILURE - Operation failed

Error Response (400 Bad Request)

Common Causes

  • Policy name does not exist in the specified pipeline and scope
  • Policy not found in the top-level policy list or nested Policy Groups
  • Invalid targetScope (ENDPOINT without targetEndpoint)
  • Invalid targetEndpoint (endpoint not found in API Proxy)

Error Response (401 Unauthorized)

Error Response (404 Not Found)

cURL Example

Example 1: Delete Policy from All Endpoints

Example 2: Delete Policy from Specific Endpoint

Example 3: Delete Policy Without Deployment

Example 4: Delete Policy from Response Pipeline

Permissions

  • User must have API_MANAGEMENT + MANAGE permission in the project
  • If deploy: true is set in the request, user must also have API_MANAGEMENT + DEPLOY_UNDEPLOY permission

Notes and Warnings

  • Policy Name: Policy name is case-insensitive. The policy is found by case-insensitive name matching.
  • Nested Policies: Policies inside Policy Groups are also searched. If the target policy is nested within a Policy Group, it will be found and deleted.
  • Scope: If policy exists in multiple scopes (ALL and ENDPOINT), you must delete from each scope separately.
  • Pipeline: If policy exists in multiple pipelines (REQUEST, RESPONSE, ERROR), you must delete from each pipeline separately.
  • Deployment: If deploy: true, ensure environments exist and user has deployment permissions.
  • Multiple Instances: If a policy with the same name exists in multiple positions (e.g., order 1 and order 3), all instances are deleted.
  • Not Found Error: If the specified policy does not exist in the given pipeline and scope, the API returns a 400 Bad Request error.
  • Irreversible: Policy deletion is permanent. Ensure you have a backup if needed.