Api event io set session keep alive
API Endpoint: api/event/io/set_session_keep_alive/
Description: Enable or disable Keep Alive for a running Session to determine if it persists without connected clients.
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (Integer number) | Session ID | |
| 1 | REQUIRED | (Enumeration) | How long the Session must be kept alive | LONG, NEVER or SHORT |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Boolean (Content was updated) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/event/io/set_session_keep_alive/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '[ 1, "NEVER" ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" },
body: '[ 1, "NEVER" ]'
};
fetch("https://engine.tygron.com/api/event/io/set_session_keep_alive/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));