Skip to main content

Purge By Url

Invalidate specific cached objects in the CDN that exactly match the provided full URL(s).

Request

Request-Line

POST /waap/v1.0/services/{serviceId}/purges/byUrl HTTP/1.1

Request Parameters

Path Parameters

ParameterTypeRequiredDescription
serviceIdLongMandatoryService ID.

Body Parameters

ParameterTypeRequiredDescription
urlsString[]MandatoryArray of urls.

Response

Response Body

ParameterTypeRequiredDescription
batchIdLongMandatoryBatch ID.

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400Request.BadRequestBad request.
400Urls.InvalidUrls is empty or invalid.
400ServiceId.InvalidServiceId is empty or invalid.
404ServiceId.NotFoundServiceId is not found.
400Purge.OperationFailedThe purge operation failed.

Examples

Purge By Url

Request

POST /waap/v1.0/services/67709/purges/byUrl HTTP/1.1

{
"urls": [
"https://example1.com/resources/load.js",
"https://example1.com/resources/load2.js",
"https://example1.com/resources/load3.js"
]
}

Successful Response Body

{
"batchId": 88
}