Restart instance
curl --request PUT \
--url https://api.wsapi.chat/account/instances/{id}/restart \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.wsapi.chat/account/instances/{id}/restart"
headers = {"X-Api-Key": "<api-key>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.wsapi.chat/account/instances/{id}/restart', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://api.wsapi.chat/account/instances/{id}/restart");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);{
"status": 400,
"detail": "invalid request body"
}{
"status": 401,
"detail": "unauthorized"
}{
"status": 404,
"detail": "not found"
}Account
Restart instance
PUT
/
account
/
instances
/
{id}
/
restart
Restart instance
curl --request PUT \
--url https://api.wsapi.chat/account/instances/{id}/restart \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.wsapi.chat/account/instances/{id}/restart"
headers = {"X-Api-Key": "<api-key>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.wsapi.chat/account/instances/{id}/restart', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://api.wsapi.chat/account/instances/{id}/restart");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);{
"status": 400,
"detail": "invalid request body"
}{
"status": 401,
"detail": "unauthorized"
}{
"status": 404,
"detail": "not found"
}⌘I