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
Line 1: Line 1:
API Event to Set a target value of an [[Indicator]] for a Sceanrio. A target index value is required.
API Event to Set a target value of an Indicator for a Sceanrio. A target index value is required.
{|class=wikitable
{|class=wikitable
!Name
!Name
Line 10: Line 10:
|REQUIRED
|REQUIRED
|(SCENARIO Integer ID)
|(SCENARIO Integer ID)
|[[Scenario]] ID
|Scenario ID
|
|
|-
|-
Line 16: Line 16:
|REQUIRED
|REQUIRED
|(INDICATOR Integer ID)
|(INDICATOR Integer ID)
|[[Indicator]] ID
|Indicator ID
|
|
|-
|-
Line 46: Line 46:


with content:  
with content:  
<pre>[ 56, 0, 3, 7 ]
<pre>[ 16, 62, 29, 77 ]
</pre>
</pre>
{{article end|seealso=*[[api session event editor indicator]]}}
{{article end|seealso=*[[api session event editor indicator]]}}


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

Revision as of 13:49, 30 March 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=HTML&token=API_TOKEN

with content:

[ 16, 62, 29, 77 ]