Skip to main content

Enterprise: Restart Server Endpoint

Overview

This endpoint is used to restart your dedicated server. As a response you will receive information about the result of the restart command.

Request

--request POST 'https://stablediffusionapi.com/api/v1/enterprise/restart_server' \

Send a POST request to https://stablediffusionapi.com/api/v1/enterprise/restart_server endpoint to restart your dedicated server.

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://stablediffusionapi.com/api/v1/enterprise/restart_server", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Response

{
"message": "server restarting",
"status": "success"
}