Custom Purge
Invalidate cached assets whose URLs match the specified path prefix or suffix.
Request
Request-Line
POST /waap/v1.0/services/{serviceId}/purges/custom HTTP/1.1
Request Parameters
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
serviceId | Long | Mandatory | Service ID. |
Body Parameters
Parameter | Type | Required | Description |
---|---|---|---|
operator | String | Mandatory | Either startswith or endswith. |
pattern | String | Mandatory | Path pattern to match; must start with "/" (e.g. /images/). |
Response
Response Body
Parameter | Type | Required | Description |
---|---|---|---|
batchId | Long | Mandatory | Batch ID. |
Status Codes, Error Codes and Error Messages
Status Code | Error Code | Error Message |
---|---|---|
400 | Request.BadRequest | Bad request. |
400 | ServiceId.Invalid | ServiceId is empty or invalid. |
400 | Operator.Invalid | Operator is empty or invalid. |
400 | Pattern.Invalid | Pattern is empty or invalid. |
404 | ServiceId.NotFound | ServiceId is not found. |
400 | Purge.OperationFailed | The purge operation failed. |
Examples
Custom Purge
Request
POST /waap/v1.0/services/67709/purges/custom HTTP/1.1
{
"operator": "startswith",
"pattern": "/test"
}
Successful Response Body
{
"batchId":1234
}