Api session event logic net clusters set default fraction connected

From Tygron Support wiki
Jump to navigation Jump to search

API Endpoint: api/session/event/logic/net_clusters_set_default_fraction_connected/

Description: Set the default fraction of connected loads with a cluster.

Index Importance Type Description Values
0 REQUIRED (Floating point number) Fraction connected, between 0 and 1

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/logic/net_clusters_set_default_fraction_connected/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '44'

Curl example multi item POST

curl 'https://engine.tygron.com/api/session/event/logic/net_clusters_set_default_fraction_connected/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '73'

JavaScript example POST

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '44'
};
fetch("https://engine.tygron.com/api/session/event/logic/net_clusters_set_default_fraction_connected/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));