Api session event editor overlay set net overlay

From Tygron Support wiki
Revision as of 10:18, 30 March 2026 by Frank@tygron.nl (talk | contribs) (Created page with "API Event to Set the visualization style for a specified network Overlay. {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(OVERLAY Integer ID) |Overlay ID (must relate to a network Overlay) | |- |1 |REQUIRED |(Enumeration) |NetType |ELECTRICITY, GAS, HEAT, INTERNET or SEWER |- |2 |REQUIRED |(true, false) |Whether to show the network (false means no lines will be visualized) |true or false |- |3 |REQUIRED |(true, false) |Whether...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API Event to Set the visualization style for a specified network Overlay.

Name Importance Type Description Values
0 REQUIRED (OVERLAY Integer ID) Overlay ID (must relate to a network Overlay)
1 REQUIRED (Enumeration) NetType ELECTRICITY, GAS, HEAT, INTERNET or SEWER
2 REQUIRED (true, false) Whether to show the network (false means no lines will be visualized) true or false
3 REQUIRED (true, false) Whether only active connections should be visualized (false means both active and inactive connections are visualized) true or false

Response Codes

Response Code: Description
204 No Content
300-600 Codes Overview

Example POST

Example POST: https://engine.tygron.com/api/session/event/editoroverlay/set_net_overlay/?f=HTML&token=API_TOKEN

with content:

[ 29, "ELECTRICITY", true, false ]