Api session event editor indicator set target: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 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= | Example POST: https://engine.tygron.com/api/session/event/editorindicator/set_target/?f=JSON&token=API_TOKEN | ||
with content: | with content: | ||
<pre>[ | <pre>[ 34, 53, 86, 41 ] | ||
</pre> | </pre> | ||
{{article end|seealso=*[[ | {{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 ]