cachePurge
POST
https://{shortCode}.api.commercecloud.salesforce.com/cdn/zones/v1/organizations/{organizationId}/zones/{zoneId}/cachepurge
Request to purge the cache for the host given in the request body
Request
curl "https://{shortCode}.api.commercecloud.salesforce.com/cdn/zones/v1/organizations/{organizationId}/zones/{zoneId}/cachepurge" \
-X POST \
-H "content-type: application/json" \
-d '{
"path": "www.sfcc-ecdn-test5.net/dw/shop/v21_9/products"
}'
Security
URI parameters
shortCode
string
Required
Region-specific merchant identifier.
0dnz6oep
version
string
Required
organizationId
string
Required
zoneId
string
Required
Body
Media type:
application/json
{
"path": "www.sfcc-ecdn-test5.net/dw/shop/v21_9/products"
}
path
string
Required
Path for clearing the cache. Allowed paths follow the format "/dw/shop//products", "/worker.js", "/mobify" or "/callback*". Regular expressions and wildcards are not supported in the path.
www.sfcc-ecdn-test5.net/dw/shop/v21_9/products
Responses
Returns completed operationId statuses that represent the rule list operations the server processed.
{
"data": {
"cachePurged": false,
"details": "1084 : Unable to purge '<url>'."
}
}
Body
Media type:
application/json
data
object
Required
Response from a cache purge request