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.

{     "cidrId": "sc_1235674554"


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.

{     "message": "Policy canceled successfully. Refund=25%"
  • 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

{     "error": {         
                  "code": "404",         
                  "message": "Not Found",         
                  "details": {             
                                "timestamp": "2025-03-04T17:15:55",       
                                "description": "Cidr rFVrfliRmYgD1 not found"

  • Cancellation Not Allowed (400 Bad Request)

{     "error": {         
                  "code": "400",        
                  "message": "Bad Request",        
                  "details": {            
                                "timestamp": "2025-03-04T17:20:30",     
                                "description": "Cancellation not allowed, reason: Policy is already canceled."

  • Unauthorized (401 Unauthorized)

{     "error": {         
                  "code": "401",         
                  "message": "Unauthorized",         
                  "details": {             
                                "timestamp": "2025-03-04T17:01:01",       
                                "description": "Unable to process access token"

  • Internal Server Error (500 Internal Server Error)

{     "error": {         
                  "code": "500",         
                  "message": "Internal Server Error",         
                  "details": {            
                                "timestamp": "2025-03-04T17:17:08",    
                                "description": "Unexpected error. Our team is working on it"

logo-footer

Solutions that drive success and propel your business forward

Copyright © 2025 Cloudidr. All Rights Reserved

logo-footer

Solutions that drive success and propel your business forward

Copyright © 2025 Cloudidr. All Rights Reserved