JavaScript
const options = {method: 'GET'}; fetch('https://api.example.com/v1/refresh/{responseId}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "status": "OK" }
Invalidates the cache for a specific source by responseId. This is useful when sources have expired or changed.
Behavior:
Unique response ID (UUID v4 format, alphanumeric with hyphens/underscores, max 128 characters)
^[a-zA-Z0-9_-]{1,128}$
Cache refreshed successfully
Cache refresh status
OK
"OK"
Was this page helpful?