Api session event editor geooption set string: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
API Endpoint: api/session/event/editorgeooption/set_string/ | API Endpoint: api/session/event/editorgeooption/set_string/ | ||
Description: Set | Description: Set the value of a [[Geo Option]] to a text value | ||
{|class=wikitable | {|class=wikitable | ||
| Line 13: | Line 13: | ||
| REQUIRED | | REQUIRED | ||
| (Enumeration) | | (Enumeration) | ||
| Type | | [[Geo Option]] Type | ||
| AGRICULTURE, BAG3D_GEOMETRIES, DTM_DSM_THRESHOLDS, HEIGHTMAP_RESOLUTION, I3S_GEOMETRIES, IMWA, INTEREST_AREA_MARGIN, NL_AHN, NL_BGT, NL_ENERGY_LABEL, NL_MAX_TREE_HEIGHT, NL_MIN_TREE_HEIGHT, NL_TRAFFIC_INFOMIL, NL_TRAFFIC_INWEVA, NL_TRAFFIC_NSL, NL_TRAFFIC_NSL_CONVERSION, OSM_BUILDINGS, OSM_LANDUSE, OSM_NEIGHBORHOODS, OSM_ROADS, OWNERSHIP, SATELLITE_RESOLUTION, TREES, UNDERGROUND, WATER or WORLD_WATER | | AGRICULTURE, BAG3D_GEOMETRIES, DTM_DSM_THRESHOLDS, HEIGHTMAP_RESOLUTION, I3S_GEOMETRIES, IMWA, INTEREST_AREA_MARGIN, NL_AHN, NL_BGT, NL_ENERGY_LABEL, NL_MAX_TREE_HEIGHT, NL_MIN_TREE_HEIGHT, NL_TRAFFIC_INFOMIL, NL_TRAFFIC_INWEVA, NL_TRAFFIC_NSL, NL_TRAFFIC_NSL_CONVERSION, OSM_BUILDINGS, OSM_LANDUSE, OSM_NEIGHBORHOODS, OSM_ROADS, OWNERSHIP, SATELLITE_RESOLUTION, TREES, UNDERGROUND, WATER or WORLD_WATER | ||
|- | |- | ||
| Line 19: | Line 19: | ||
| REQUIRED | | REQUIRED | ||
| (String) | | (String) | ||
| | | Text Value | ||
| | | | ||
|} | |} | ||
| Line 35: | Line 35: | ||
===Example POST=== | ===Example POST=== | ||
Curl example POST | Curl example POST | ||
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorgeooption/set_string/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", "Text" ]' | <syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorgeooption/set_string/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", "Text Value" ]' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
JavaScript example POST | JavaScript example POST | ||
| Line 41: | Line 41: | ||
method: "POST", | method: "POST", | ||
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" }, | headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" }, | ||
body: '[ "NL_BGT", "Text" ]' | body: '[ "NL_BGT", "Text Value" ]' | ||
}; | }; | ||
fetch("https://engine.tygron.com/api/session/event/editorgeooption/set_string/", options) | fetch("https://engine.tygron.com/api/session/event/editorgeooption/set_string/", options) | ||
Latest revision as of 15:29, 10 November 2026
API Endpoint: api/session/event/editorgeooption/set_string/
Description: Set the value of a Geo Option to a text value
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (Enumeration) | Geo Option Type | AGRICULTURE, BAG3D_GEOMETRIES, DTM_DSM_THRESHOLDS, HEIGHTMAP_RESOLUTION, I3S_GEOMETRIES, IMWA, INTEREST_AREA_MARGIN, NL_AHN, NL_BGT, NL_ENERGY_LABEL, NL_MAX_TREE_HEIGHT, NL_MIN_TREE_HEIGHT, NL_TRAFFIC_INFOMIL, NL_TRAFFIC_INWEVA, NL_TRAFFIC_NSL, NL_TRAFFIC_NSL_CONVERSION, OSM_BUILDINGS, OSM_LANDUSE, OSM_NEIGHBORHOODS, OSM_ROADS, OWNERSHIP, SATELLITE_RESOLUTION, TREES, UNDERGROUND, WATER or WORLD_WATER |
| 1 | REQUIRED | (String) | Text Value |
Response Codes
| Response Code: | Description |
|---|---|
| 204 | No Content |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/session/event/editorgeooption/set_string/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", "Text Value" ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ "NL_BGT", "Text Value" ]'
};
fetch("https://engine.tygron.com/api/session/event/editorgeooption/set_string/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));