Api session items costs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (18 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
API Endpoint: /api/session/items/costs/ | |||
Default Query: | Default Query: | ||
| Line 8: | Line 8: | ||
version=100: | version=100: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/costs/?version=100&token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/costs/?version=100&token=API_TOKEN</syntaxhighlight> | ||
== | ==Get Queries== | ||
attributes: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/costs/attributes/?token=API_TOKEN</syntaxhighlight> | |||
max version: | max version: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/costs/version/?token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/costs/version/?token=API_TOKEN</syntaxhighlight> | ||
count: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/costs/ | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/costs/count/?token=API_TOKEN</syntaxhighlight> | ||
==Formats== | ==Formats== | ||
HTML: | HTML: | ||
| Line 28: | Line 30: | ||
ZIPSMILE: | ZIPSMILE: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/costs/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/costs/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
==Api Model Cost== | |||
API Enumeration description of Cost | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
| DEFAULT | |||
| | |||
|- | |||
| RESERVED_CONSTRUCTION | |||
| | |||
|- | |||
| RESERVED_UPGRADE | |||
| | |||
|- | |||
| CONSTRUCTION | |||
| | |||
|- | |||
| RESERVED_DEMOLISH | |||
| | |||
|- | |||
| DEMOLISH | |||
| | |||
|- | |||
| MAINTENANCE | |||
| | |||
|- | |||
| UPGRADE | |||
| | |||
|- | |||
| BUY_OUT | |||
| | |||
|} | |||
==Api Model CostBookValue== | |||
API Model description of CostBookValue | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| costType | |||
| Cost | |||
| [[Cost]] | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| linkID | |||
| int | |||
| | |||
|- | |||
| mapLink | |||
| MapLink | |||
| [[Maplink]] | |||
|- | |||
| name | |||
| String | |||
| | |||
|- | |||
| stakeholderID | |||
| int | |||
| [[Stakeholder]] ID | |||
|- | |||
| value | |||
| double | |||
| | |||
|- | |||
| version | |||
| int | |||
| | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | {{article end|seealso=*[[Api Content Items]] | ||
*[[Api session event editor]] | *[[Api session event editor]] | ||
| Line 33: | Line 111: | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 07:14, 7 July 2026
API Endpoint: /api/session/items/costs/
Default Query:
https://engine.tygron.com/api/session/items/costs/?f=JSON&token=API_TOKENExample Response:
[ ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/costs/?version=100&token=API_TOKENGet Queries
attributes:
https://engine.tygron.com/api/session/items/costs/attributes/?token=API_TOKENmax version:
https://engine.tygron.com/api/session/items/costs/version/?token=API_TOKENcount:
https://engine.tygron.com/api/session/items/costs/count/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/costs/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/costs/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/costs/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/costs/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/costs/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/costs/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/costs/?f=ZIPSMILE&token=API_TOKENApi Model Cost
API Enumeration description of Cost
| Name | Description |
|---|---|
| DEFAULT | |
| RESERVED_CONSTRUCTION | |
| RESERVED_UPGRADE | |
| CONSTRUCTION | |
| RESERVED_DEMOLISH | |
| DEMOLISH | |
| MAINTENANCE | |
| UPGRADE | |
| BUY_OUT |
Api Model CostBookValue
API Model description of CostBookValue
| Name | Type | Description |
|---|---|---|
| costType | Cost | Cost |
| id | int | |
| linkID | int | |
| mapLink | MapLink | Maplink |
| name | String | |
| stakeholderID | int | Stakeholder ID |
| value | double | |
| version | int |