Skip to main content

Clear User Cache

Overview

This endpoint is used to clear the user's cache.

Request

--request POST 'https://modelslab.com/api/v5/clear_cache' \

Send a POST request to https://modelslab.com/api/v5/clear_cache endpoint to clear the user's cache.

Attributes

ParameterTypeDescription
keyStringYour API Key used for request authorization

Example

Body

Body Raw
{
"key": ""
}

Request

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
"key": ""
});

var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};

fetch("https://modelslab.com/api/v5/clear_cache", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Response

{
"status": "success",
"message": "Cache cleared"
}