Api session items upgradetypes
Jump to navigation
Jump to search
Api session items Upgrade Types Endpoints.
Edit items with event: editorupgradetype.
Default Query:
https://engine.tygron.com/api/session/items/upgradetypes/?f=JSON&token=API_TOKENExample Response:
[ {
"costPerFloor" : true,
"costsPerM2" : 170.0,
"deprecated" : false,
"description" : "Renovating social houses is cheaper than building new houses. Additionally, it adds to the livability in the neighborhood.",
"id" : 0,
"imageName" : "renovation.png",
"imageVersion" : 0,
"mustOwn" : false,
"name" : "Renovate houses",
"pairs" : [ {
"sourceFunctionID" : 1,
"targetFunctionID" : 340
} ],
"version" : 3,
"zoningPermitRequired" : false
}, {
"costPerFloor" : false,
"costsPerM2" : 0.0,
"deprecated" : false,
"description" : "Stimulate the installation of water tanks to improve the water awareness",
"id" : 1,
"imageName" : "empty.png",
"imageVersion" : 0,
"mustOwn" : false,
"name" : "Gardens -> Water tanks",
"pairs" : [ ],
"version" : 1,
"zoningPermitRequired" : false
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/upgradetypes/?version=100&token=API_TOKENShow Queries
max version:
https://engine.tygron.com/api/session/items/upgradetypes/version/?token=API_TOKENsize:
https://engine.tygron.com/api/session/items/upgradetypes/size/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/upgradetypes/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/upgradetypes/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/upgradetypes/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/upgradetypes/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/upgradetypes/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/upgradetypes/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/upgradetypes/?f=ZIPSMILE&token=API_TOKENApi Model UpgradePair
API Model description of UpgradePair
| Name | Type | Description |
|---|---|---|
| sourceFunctionID | int | Function ID |
| targetFunctionID | int | Function ID |
Api Model UpgradeType
API Model description of UpgradeType
| Name | Type | Description |
|---|---|---|
| costPerFloor | boolean | |
| costsPerM2 | double | |
| deprecated | boolean | |
| description | String | |
| id | int | |
| imageName | String | |
| imageVersion | int | |
| mustOwn | boolean | |
| name | String | |
| pairs | UpgradePair[] | |
| version | int | |
| zoningPermitRequired | boolean |