Skip to content

Purge cache via URL or cache keys

POST
/api/v2/organizations/{organization}/projects/{project}/purge
curl --request POST \
--url https://dashboard.quantcdn.io/api/v2/organizations/test-org/projects/test-project/purge \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "cache_keys": [ "example" ], "urls": [ "example" ], "scope": "project", "soft": true }'
organization
required
string

Organization identifier

Example
test-org
project
required
string

Project identifier

Example
test-project
Media typeapplication/json
object
cache_keys
required

Cache keys to purge

Array<string>
urls

URLs to purge

Array<string>
scope
required

Purge scope (org or project)

string
default: project
soft

Soft purge

boolean
default: true

The request has succeeded.

Media typeapplication/json
string
Examplegenerated
example

The server could not understand the request due to invalid syntax.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
Example
{
"message": "The requested resource was not found",
"error": true
}

Access is forbidden.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
Example
{
"message": "The requested resource was not found",
"error": true
}