Api session event editor building reset function values

From Tygron Support wiki
Revision as of 13:44, 30 March 2026 by Frank@tygron.nl (talk | contribs)
Jump to navigation Jump to search

API Event to Reset Function Values

Name Importance Type Description Values
0 REQUIRED (BUILDING Integer ID) Building
1 REQUIRED (FunctionValue or multiple values in array [a, b, c]) FunctionValue[]

Response Codes

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

Example POST

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

with content:

[ 14, [ "JAM_FACTOR_CARS", "NUM_TRUCKS", "NUM_CARS" ] ]