POST
/
cdn
/
resources
/
{id}
/
purge
HttpResponse<String> response = Unirest.post("https://api.gcore.com/cdn/resources/{id}/purge")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"/some-url.jpg\",\n \"/img/example.jpg\"\n ]\n}")
.asString();
This response does not have an example.

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

id
integer
required

CDN resource ID.

Body

application/json

Response

201

Successful.