Api event io start
API Endpoint: api/event/io/start/
Description: Start a new Session
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (Enumeration) | SessionType: SINGLE, MULTI, EDITOR | EDITOR, MULTI or SINGLE |
| 1 | REQUIRED | (String) | Project Name | |
| 2 | OPTIONAL | (Enumeration) | Language: NL, EN (optional) | |
| 3 | OPTIONAL | (Integer number) | Preferred Session ID (optional) | |
| 4 | OPTIONAL | (String) | Group token (optional) |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Integer (Session ID) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/event/io/start/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>=' -d '[ "EDITOR", "Project Name" ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>=" },
body: '[ "EDITOR", "Project Name" ]'
};
fetch("https://engine.tygron.com/api/event/io/start/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));