Create Purge

This API is used to create batch purge on edge server.

1. Request Definition

  • API URL{serviceId}/purges
  • Request Method
  • Request Header

Refer to HTTP Request Headers

  • Request Body

Request Body Data Format: JSON, an array of the following objects. And the length of the array should be less than 20k.

Field Required Type Description
urlPath Mandatory string Url path to be purged on edge server.
expireTimestamp Mandatory long UTC timestamp before which contents should be expired.
  • Request Body Example
        "urlPath": "/resources/js/test1.js",
        "expireTimestamp": 1405005161
        "urlPath": "/resources/js/test2.js",
        "expireTimestamp": 1405005161

2. Response Definition

  • Response Header

Refer to HTTP Response Headers

  • Response Body
Field Type Description
batchId int the id of batch purge
  • Response Body Example
    "batchId": 2
           Updated 2020-09-15 08:06:17

results matching ""

    No results matching ""