Api session event editor terraintype add

From Tygron Support wiki
Jump to navigation Jump to search

API Endpoint: editorterraintype/add.

Description: Add new Terrain Type

Name Importance Type Description Values
0 REQUIRED (Enumeration) Layer BRIDGE, SURFACE or UNDERGROUND

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/editorterraintype/add/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '"BRIDGE"'

JavaScript example POST:

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