Cancel schedule policy
Endpoint URL
HTTP Method
POST
Request Headers
Content-Type: application/json
Authorization: Bearer <your_access_token>
Request Body
The request body should be a JSON representation of the policy details. At a minimum, the policy data must include the cidrId field.
Success Response (200 OK)
Scenario 1: Policy Cancelled Successfully
This response indicates that the policy was canceled successfully, with a refund applied based on the cancellation conditions.
Scenario 2: Cancellation Already Triggered or Processed
This response indicates scenario when the policy is cancelled within 15 minutes after creation.
Error Responses
Not Found (404 Not Found)
This error indicates that the specified cidr_id does not correspond to any existing cyber policy view
Cancellation Not Allowed (400 Bad Request)
Unauthorized (401 Unauthorized)
Internal Server Error (500 Internal Server Error)