Create Purge

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

1. Request Definition

  • API URL
https://cdn-api.swiftfederation.com/v2.0/services/{serviceId}/purges
  • Request Method
POST
  • Request Header

Refer to HTTP Request Headers

  • Request Body

Request Body Data Format: JSON, an array of the following objects.

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
}
© 2018-2020 Conversant Solutions Pte Ltd. All rights reserved.            Updated 2020-07-27 05:38:08

results matching ""

    No results matching ""