Api session event editor indicator set target: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Set a target value of an Indicator for a Sceanrio. A target index value is required. {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(SCENARIO Integer ID) |Scenario ID | |- |1 |REQUIRED |(INDICATOR Integer ID) |Indicator ID | |- |2 |REQUIRED |(Integer number) |Target index | |- |3 |REQUIRED |(Floating point number) |Target value | |} ===Response Codes=== {|class=wikitable !Response Code: !Description |- |204 |No Co..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 43: Line 43:
|}
|}
===Example POST===
===Example POST===
Example POST: https://engine.tygron.com/api/session/event/editorindicator/set_target/?f=HTML&token=API_TOKEN
Example POST: https://engine.tygron.com/api/session/event/editorindicator/set_target/?f=JSON&token=API_TOKEN


with content:  
with content:  
<pre>[ 56, 0, 3, 7 ]
<pre>[ 34, 53, 86, 41 ]
</pre>
</pre>
{{article end|seealso=*[[api session event editor indicator]]}}
{{article end|seealso=*[[Api session event editor indicator]]
*[[Api session items indicators]]
}}


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

Latest revision as of 12:07, 1 April 2026

API Event to Set a target value of an Indicator for a Sceanrio. A target index value is required.

Name Importance Type Description Values
0 REQUIRED (SCENARIO Integer ID) Scenario ID
1 REQUIRED (INDICATOR Integer ID) Indicator ID
2 REQUIRED (Integer number) Target index
3 REQUIRED (Floating point number) Target value

Response Codes

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

Example POST

Example POST: https://engine.tygron.com/api/session/event/editorindicator/set_target/?f=JSON&token=API_TOKEN

with content:

[ 34, 53, 86, 41 ]