Api session event editor eventbundle set event
API Endpoint: editoreventbundle/set_event.
API Endpoint name is Api session event editor eventbundle set event.
Use this endpoint to Set Event
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (EVENT_BUNDLE Integer ID) | Event Bundle | |
| 1 | REQUIRED | (true, false) | Boolean | true or false |
| 2 | REQUIRED | (CodedEvent) | CodedEvent |
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/editoreventbundle/set_event/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '
[ 1, true, {
"id" : -1,
"parameters" : [ ]
} ]
'JavaScript example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ 1, true, { "id" : -1, "parameters" : [ ]} ]'
};
fetch("https://engine.tygron.com/api/session/event/editoreventbundle/set_event/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));