Purge multiple surrogate key tags
POST {{fastly_url}}/service/{{service_id}}/purge
Instant Purge a particular service of items tagged with surrogate keys. Up to 256 surrogate keys can be purged in one batch request. As an alternative to sending the keys in a JSON object in the body of the request, this endpoint also supports listing keys in a Surrogate-Key request header, e.g. Surrogate-Key: key1 key2 key_3.
Authorization: Requires API token.
Request Body
{"surrogate_keys"=>["key_1", "key_2", "key_3"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Host | string | ||
Content-Type | string | ||
Accept | string | ||
fastly-soft-purge | number | ||
surrogate-key | string |