Api session event editor geoplugin add: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
API Endpoint: api/session/event/editorgeoplugin/add/
API Endpoint: api/session/event/editorgeoplugin/add/


Description: Add new [[Geo Plugin]]
Description: Add a new [[Geo Plugin]] of a [[Geo Link]] Type


{|class=wikitable
{|class=wikitable
Line 13: Line 13:
| REQUIRED
| REQUIRED
| (Enumeration)
| (Enumeration)
| [[Geo Link]]Type
| [[Geo Link]] Types
| AREA, BUILDING, ROAD, STREET_OBJECT, TERRAIN_HEIGHT  or  WATER_BOTTOM
| AREA, BUILDING, ROAD, STREET_OBJECT, TERRAIN_HEIGHT  or  WATER_BOTTOM
|}
|}
Line 22: Line 22:
|-
|-
| 200
| 200
| Integer (Integer)
| Integer (Geo Plugin)
|-
|-
| 300-600
| 300-600

Latest revision as of 15:29, 10 November 2026

API Endpoint: api/session/event/editorgeoplugin/add/

Description: Add a new Geo Plugin of a Geo Link Type

Index Importance Type Description Values
0 REQUIRED (Enumeration) Geo Link Types AREA, BUILDING, ROAD, STREET_OBJECT, TERRAIN_HEIGHT or WATER_BOTTOM

Response Codes

Response Code: Description
200 Integer (Geo Plugin)
300-600 Codes Overview

Example POST

Curl example POST

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

JavaScript example POST

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