Api session event editor area add: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
API Endpoint: editorarea/add.
API Endpoint: editorarea/add.


API Endpoint name is Api session event editor area add.
Description: Add new [[Area]]
 
Use this endpoint to Add new [[Area]]


{|class=wikitable
{|class=wikitable
Line 47: Line 45:
</syntaxhighlight>
</syntaxhighlight>
{{article end|seealso=*[[Api session event editor area]]
{{article end|seealso=*[[Api session event editor area]]
*[[Api session items areas]]
}}
}}


[[Category:API]]
[[Category:API]]

Latest revision as of 13:30, 14 April 2026

API Endpoint: editorarea/add.

Description: Add new Area

Name Importance Type Description Values
0 OPTIONAL (Integer number) Amount (optional)

Response Codes

Response Code: Description
200 Integer[] (Area IDs)
300-600 Codes Overview

Example POST

Curl example POST:

curl 'https://engine.tygron.com/api/session/event/editorarea/add/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '1'

JavaScript example POST:

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '1'
};
fetch("https://engine.tygron.com/api/session/event/editorarea/add/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));