Skip to main content

Enterprise: Reset S3 Bucket

Overview

The endpoint resets the S3 bucket to the default s3 record.

Request

--request POST 'https://modelslab.com/api/v1/enterprise/reset_s3' \

Send a POST request to https://modelslab.com/api/v1/enterprise/reset_s3 endpoint.

note

Make sure you are passing the image in base64 format.

Body Attributes

ParameterDescription
keyYour enterprise API Key used for request authorization.
deploy_typeThis is the server type you are making request from. It includes text_to_image, image_editing, voice_cloning,text_to_3d, video, face_gen, deepfake, realtime,super_resolution, flux, flux_headshot and interior. If nothing is passed text_to_image will be the default

Example

Body

Body Raw
{
"key": "enterprise_api_key",
"deploy_type": "text_to_image"
}

Request

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

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

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

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

Response

{
"status": "success",
"message": "reset s3 bucket was successful",
}