CDN and DNS (v2.1)

Create Purge

Creates a new Purge object in the specified workspace with the provided configuration.

post/delivery/v2.1/global/workspaces/{workspaceUUID}/purges

Request

  • Base URL
    https://api.sotoon.ir (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

workspaceUUIDstring required

UUID of the workspace

Request body

apiVersion'delivery/v2' | 'delivery/v2.1' required

Version identifier of the API schema

kind'Purge' required

The string value 'Purge' that identifies the schema

Example request

{
  "apiVersion": "delivery/v2",
  "kind": "Purge",
  "metadata": {
    "uid": "00000000-0000-0000-0000-000000000000"
  },
  "spec": {
    "hostname": "example.com"
  }
}

Response

The purge was successfully created. The response contains the complete purge details including the assigned unique identifier.

apiVersion'delivery/v2' | 'delivery/v2.1' required

Version identifier of the API schema

kind'Purge' required

The string value 'Purge' that identifies the schema

Example response

{
  "apiVersion": "delivery/v2",
  "kind": "Purge",
  "metadata": {
    "uid": "00000000-0000-0000-0000-000000000000"
  },
  "spec": {
    "hostname": "example.com"
  }
}

Changes

No recorded changes to this operation across all 6 revisions of this API.