Api session event editor geooption set boolean: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 32: | Line 32: | ||
===Example POST=== | ===Example POST=== | ||
Curl Example POST: | Curl Example POST: | ||
<syntaxhighlight lang="text" copy>curl 'https://development.tygron.com/api/session/event/editorgeooption/set_boolean/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", true ]' | |||
</syntaxhighlight> | |||
Curl Example multi item POST: | |||
<syntaxhighlight lang="text" copy>curl 'https://development.tygron.com/api/session/event/editorgeooption/set_boolean/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", false ]' | <syntaxhighlight lang="text" copy>curl 'https://development.tygron.com/api/session/event/editorgeooption/set_boolean/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", false ]' | ||
| Line 39: | Line 43: | ||
<syntaxhighlight lang="text" copy>var options = { | <syntaxhighlight lang="text" copy>var options = { | ||
method: "POST", | method: "POST", | ||
headers: { "Content-Type": "application/json", "Authorization": "Bearer | headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" }, | ||
body: '[ "NL_BGT", | body: '[ "NL_BGT", true ]' | ||
}; | }; | ||
fetch("https://development.tygron.com/api/session/event/editorgeooption/set_boolean/", options) | fetch("https://development.tygron.com/api/session/event/editorgeooption/set_boolean/", options) | ||
Revision as of 06:50, 10 April 2026
API Event to Set Boolean
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (Enumeration) | 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 | (true, false) | Boolean | true or false |
Response Codes
| Response Code: | Description |
|---|---|
| 204 | No Content |
| 300-600 | Codes Overview |
Example POST
Curl Example POST:
curl 'https://development.tygron.com/api/session/event/editorgeooption/set_boolean/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", true ]'Curl Example multi item POST:
curl 'https://development.tygron.com/api/session/event/editorgeooption/set_boolean/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", false ]'JavaScript Example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ "NL_BGT", true ]'
};
fetch("https://development.tygron.com/api/session/event/editorgeooption/set_boolean/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));