Skip to main content

Enterprise: Clear API Cache Endpoint

Overview

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

Request

--request POST 'https://modelslab.com/api/v1/enterprise/3d/clear_cache' \

Send a POST request to https://modelslab.com/api/v1/enterprise/3d/clear_cache endpoint to clear the API's cache.

Attributes

ParameterDescription
keyYour enterprise API Key used for request authorization

Example

Body

Body Raw
{
"key": "enterprise_api_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/v1/enterprise/3d/clear_cache", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Response

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