Api session event editor area add with attribute

From Tygron Support wiki
Revision as of 13:31, 14 April 2026 by Frank@tygron.nl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API Endpoint: editorarea/add_with_attribute.

Description: Add With Attribute

Name Importance Type Description Values
0 REQUIRED (String) String
1 REQUIRED (Floating point number) Double

Response Codes

Response Code: Description
200 Integer (Integer)
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 '[ "Text", 34 ]'

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 '[ "Text", 40 ]'

JavaScript example POST:

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '[ "Text", 34 ]'
};
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));