Api session event editor netcluster remove all clusters
Jump to navigation
Jump to search
API Endpoint: editornetcluster/remove_all_clusters.
Description: Remove All Clusters
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (Enumeration) | NetType | ELECTRICITY, GAS, HEAT, INTERNET or SEWER |
Response Codes
| Response Code: | Description |
|---|---|
| 204 | No Content |
| 300-600 | Codes Overview |
Example POST
Curl example POST:
curl 'https://engine.tygron.com/api/session/event/editornetcluster/remove_all_clusters/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '"ELECTRICITY"'JavaScript example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '"ELECTRICITY"'
};
fetch("https://engine.tygron.com/api/session/event/editornetcluster/remove_all_clusters/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));