Api session event editor netload set state: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Set State {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(NET_LOAD Integer ID or multiple values in array [1, 2, 3]) |Net Loads | |- |1 |REQUIRED |(TimeState or multiple values in array [a, b, c]) |TimeState[] | |} ===Response Codes=== {|class=wikitable !Response Code: !Description |- |204 |No Content |- |300-600 |Codes Overview |} ===Example POST=== Example POST: https://engine.tygron.com/api/session/event/editornetl..."
 
No edit summary
Line 10: Line 10:
|REQUIRED
|REQUIRED
|(NET_LOAD Integer ID or multiple values in array [1, 2, 3])
|(NET_LOAD Integer ID or multiple values in array [1, 2, 3])
|[[Net Load]]s
|[[Net Load]]
|
|
|-
|-
Line 34: Line 34:


with content:  
with content:  
<pre>[ [ 1, 2, 3 ], [ "CONSTRUCTION_DENIED", "DEMOLISH_DENIED", "PENDING_UPGRADE" ] ]
<pre>[ [ 1, 2, 3 ], [ "DEMOLISH_APPROVED", "CONSTRUCTION_APPROVED", "CONSTRUCTION_APPROVED" ] ]
</pre>
</pre>
{{article end|seealso=*[[api session event editor netload]]}}
{{article end|seealso=*[[api session event editor netload]]}}


[[Category:API]]
[[Category:API]]

Revision as of 07:53, 31 March 2026

API Event to Set State

Name Importance Type Description Values
0 REQUIRED (NET_LOAD Integer ID or multiple values in array [1, 2, 3]) Net Load
1 REQUIRED (TimeState or multiple values in array [a, b, c]) TimeState[]

Response Codes

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

Example POST

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

with content:

[ [ 1, 2, 3 ], [ "DEMOLISH_APPROVED", "CONSTRUCTION_APPROVED", "CONSTRUCTION_APPROVED" ] ]