Api session event editor area add with attribute
Jump to navigation
Jump to search
API Endpoint: api/session/event/editorarea/add_with_attribute/
Description: Add an Area with the provided Attribute and value
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (String) | Attribute | |
| 1 | REQUIRED | (Floating point number) | Attribute value |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Integer (Area ID) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/session/event/editorarea/add_with_attribute/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "Attribute", 53 ]'Curl example multi item POST
curl 'https://engine.tygron.com/api/session/event/editorarea/add_with_attribute/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "Attribute", 21 ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ "Attribute", 53 ]'
};
fetch("https://engine.tygron.com/api/session/event/editorarea/add_with_attribute/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));