Delete callback rules

Delete a callback routing rule.

HTTP
DELETE $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/callback-rules/{callback_rule_id}

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare a personal access token and target workspace ID that can access the target workspace.

Request parameters

Shell
curl -X DELETE "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/callback-rules/$CALLBACK_RULE_ID" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"

This interface has no additional request parameters.

Successful response

JSON
{
  "code": 0,
  "data": {
    "deleted": true
  }
}

Field

Type

Description

data.deleted

boolean

Has it been deleted?

Error response

JSON
{
  "code": 3,
  "message": "callback rule not found"
}

Field

Type

Description

code

integer

error code.

message

string

Error message for the caller.

Last updated on