Api session event editor geooption set numbers: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
API Endpoint | API Endpoint: editorgeooption/set_numbers. | ||
API Endpoint name is Api session event editor geooption set numbers | API Endpoint name is Api session event editor geooption set numbers. | ||
Use this endpoint to Set Numbers | |||
{|class=wikitable | {|class=wikitable | ||
| Line 34: | Line 36: | ||
|} | |} | ||
===Example POST=== | ===Example POST=== | ||
Curl | Curl example POST: | ||
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorgeooption/set_numbers/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", 1.0 ]' | <syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorgeooption/set_numbers/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", 1.0 ]' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Curl | Curl example multi item POST: | ||
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorgeooption/set_numbers/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", [ 1.0, 2.0, 3.0 ] ]' | <syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorgeooption/set_numbers/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", [ 1.0, 2.0, 3.0 ] ]' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
JavaScript | JavaScript example POST: | ||
<syntaxhighlight lang="text" copy>var options = { | <syntaxhighlight lang="text" copy>var options = { | ||
| Line 55: | Line 57: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{article end|seealso=*[[Api session event editor geooption]] | {{article end|seealso=*[[Api session event editor geooption]] | ||
}} | }} | ||
[[Category:API]] | [[Category:API]] | ||
Revision as of 11:24, 10 April 2026
API Endpoint: editorgeooption/set_numbers.
API Endpoint name is Api session event editor geooption set numbers.
Use this endpoint to Set Numbers
| 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 | (Floating point number or multiple values in array [1.0, 2.0, 3.0]) | double[] |
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_numbers/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", 1.0 ]'Curl example multi item POST:
curl 'https://engine.tygron.com/api/session/event/editorgeooption/set_numbers/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "NL_BGT", [ 1.0, 2.0, 3.0 ] ]'JavaScript example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ "NL_BGT", 1.0 ]'
};
fetch("https://engine.tygron.com/api/session/event/editorgeooption/set_numbers/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));