Invalidate

POST {{protocol}}://{{media_resolver_url}}/invalidate

Bust the file URL from CDN to invalidate the public URL of the modified file.

This API only allows Service to Service consumption. A zesty user cannot use this API.

X-Service-Auth-Content and X-Service-Auth-Sig custom headers are used to consume this API via Service to Service token.

Format: tuple

[[zuid, type [, actionsHash]], [..], ..]

  • if actionsHash is the string \* , it is treated as a wildcard and all actions hashes are deleted for the given zuid and type. Keys without a actionsHash are not deleted.
  • if actionsHash is null, undefined, or an empty string, a key without the actionsHash will be deleted so So if user wants to delete a zuid/type pair and all possible subkeys, user would submit two tuples like so: [[zuid, type], [zuid, type, '\*']]

Body:

namedescription
file_zuid[id] Required. File ID in ZUID Format.
URL[string] Required. URL
actionHash[string] Required. Action Hash. value can be * or specific action hash

Request Body

{"0"=>["{{file_id}}", "url", "*"]}

HEADERS

KeyDatatypeRequiredDescription
X-Service-Auth-Contentstring
X-Service-Auth-Sigstring

RESPONSES

status: OK