Purges the CDN cache for the given subdomain
Required permission
Account > Networking > Subdomains > Update
Path parameters
domain
string requiredName of the domainsubdomain
string requiredName of the subdomain
Request body
- {object}
provider
string requiredProvider for which the CDN cache on the subdomain should be purged.
Response body
- {object}Response object.
data
{object} requiredResult data.
API
CLI
JS Client
POST /v1/domains/{domain}/subdomains/{subdomain}/cdn/purge
POST /v1/teams/{teamId}/domains/{domain}/subdomains/{subdomain}/cdn/purge
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"provider":"northflank"}' \
https://api.northflank.com/v1/domains/{domain}/subdomains/{subdomain}/cdn/purgeExample response
200 OK
The operation was performed successfully.
JSON
{
"data": {}
}