Api session event editor overlay add: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 25: | Line 25: | ||
|} | |} | ||
===Example POST=== | ===Example POST=== | ||
Example POST: | Curl Example POST: | ||
<syntaxhighlight lang="text" copy>curl 'https://development.tygron.com/api/session/event/editoroverlay/add/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '"OWNERSHIP"' | |||
< | </syntaxhighlight> | ||
</ | JavaScript Example POST: | ||
<syntaxhighlight lang="text" copy>var options = { | |||
method: "POST", | |||
headers: { "Content-Type": "application/json", "Authorization": "Bearer 31410104zAuxtcJo8WGhL6iYlCDnU5hd" }, | |||
body: '"OWNERSHIP"' | |||
}; | |||
fetch("https://development.tygron.com/api/session/event/editoroverlay/add/", options) | |||
.then(response => response.text()) | |||
.then(result => console.log(result)) | |||
.catch(error => console.log('error', error)); | |||
</syntaxhighlight> | |||
{{article end|seealso=*[[Api session event editor overlay]] | {{article end|seealso=*[[Api session event editor overlay]] | ||
*[[Api session items overlays]] | *[[Api session items overlays]] | ||
Revision as of 15:27, 8 April 2026
API Event to Add a new Overlay of the specified type.
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (Enumeration) | OverlayType | INFERENCE, AREA, ATTRIBUTE, AVG, COMBO, DISTANCE, FLOODING, FUNCTION, GEO_TIFF, GROUNDWATER, HEAT_STRESS, HEIGHTMAP, IMAGE, ITERATION, LIVABILITY, MUNICIPALITIES, NEIGHBORHOODS, NETWORK_DISTANCE, NETWORK_OVERVIEW, NETWORK_OWNERSHIP, OWNERSHIP, OWNERSHIP_GRID, RAINFALL, RESULT_CHILD, SATELLITE, SCENARIO, SHADOW, SIGHT_DISTANCE, SOURCE, TEST, TRAFFIC_DENSITY, TRAFFIC_NO2, TRAFFIC_NOISE, TRAVEL_DISTANCE, UNDERGROUND, WATERSHED, WCS, WMS, ZIP_CODES or ZONING |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Integer (Overlay ID) |
| 300-600 | Codes Overview |
Example POST
Curl Example POST:
curl 'https://development.tygron.com/api/session/event/editoroverlay/add/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '"OWNERSHIP"'JavaScript Example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer 31410104zAuxtcJo8WGhL6iYlCDnU5hd" },
body: '"OWNERSHIP"'
};
fetch("https://development.tygron.com/api/session/event/editoroverlay/add/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));