Api session items stakeholders: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Replaced content with "Api session items Stakeholder Endpoints. Edit items with event: editorstakeholder. Default Query: <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/stakeholders/?f=JSON&token=API_TOKEN</syntaxhighlight> Example Response: <syntaxhighlight lang="text" copy>[ { "active" : true, "client" : null, "color" : { "argb" : -3355444 }, "id" : 0, "imageName" : "municipality.png", "imageVe..."
Tag: Replaced
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 76: Line 76:
ZIPSMILE:  
ZIPSMILE:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/stakeholders/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/stakeholders/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight>
==Api Model ActionMenu==
==Api Model Point==
API Model description of ActionMenu
API Model description of Point


{|class=wikitable
{|class=wikitable
Line 83: Line 83:
!Type
!Type
!Description
!Description
|-
|attributeActionIDs
|int<nowiki>[]</nowiki>
|[[Attribute Action]] ID
|-
|buildable
|Map&lt;int,java.util.List<java.lang.Integer>&gt;
|
|-
|color
|TColor
|
|-
|eventBundleIDs
|int<nowiki>[]</nowiki>
|[[Event Bundle]] ID
|-
|functionIDs
|int<nowiki>[]</nowiki>
|[[Function]] ID
|-
|id
|int
|
|-
|imageName
|String
|
|-
|imageVersion
|int
|
|-
|leveeIDs
|int<nowiki>[]</nowiki>
|[[Levee]] ID
|-
|measureIDs
|int<nowiki>[]</nowiki>
|[[Measure]] ID
|-
|name
|String
|
|-
|sortIndex
|int
|
|-
|specialOptions
|Type<nowiki>[]</nowiki>
|
|-
|upgradeIDs
|int<nowiki>[]</nowiki>
|[[Upgrade Type]] ID
|-
|version
|int
|
|}
==Api Model BaseFunction==
API Model description of BaseFunction
{|class=wikitable
!Name
!Type
!Description
|-
|attributes
|Map&lt;String,double[]&gt;
|
|-
|categories
|Category<nowiki>[]</nowiki>
|
|-
|constructionPeriods
|ConstructionPeriod<nowiki>[]</nowiki>
|
|-
|decals
|Map&lt;FaceType,float[]&gt;
|
|-
|defaults
|Type<nowiki>[]</nowiki>
|
|-
|description
|String
|
|-
|dimension
|int
|
|-
|id
|int
|
|-
|imageName
|String
|
|-
|modelSetID
|int
|[[Model Set]] ID
|-
|name
|String
|
|-
|placementType
|PlacementType
|
|-
|regions
|Region<nowiki>[]</nowiki>
|
|-
|textures
|Map&lt;FaceType,String&gt;
|
|-
|version
|int
|
|}
==Api Model Group (SpecialOption)==
API Enumeration description of Group
{|class=wikitable
!Name
!Description
|-
|LAND
|
|-
|SCULPTING
|
|-
|FINANCE
|
|-
|DEMOLISH
|
|}
==Api Model SpecialOption==
API Model description of SpecialOption
{|class=wikitable
!Name
!Type
!Description
|-
|defaults
|Type<nowiki>[]</nowiki>
|
|-
|description
|String
|
|-
|id
|int
|
|-
|imageName
|String
|
|-
|name
|String
|
|-
|version
|int
|
|}
|}


Line 340: Line 158:
|}
|}


==Api Model Type (SpecialOption)==
==Api Model TColor==
API Enumeration description of Type
API Model description of TColor


{|class=wikitable
{|class=wikitable
!Name
!Name
!Type
!Description
!Description
|-
|BUY_LAND
|
|-
|SELL_LAND
|
|-
|DEMOLISH
|
|-
|REVERT
|
|-
|DEMOLISH_UNDERGROUND
|
|-
|RAISE_LAND
|
|-
|SHOW_BUDGETPANEL
|
|-
|SHOW_MONEY_TRANSFER_PANEL
|
|-
|LOWER_LAND
|
|}
|}


Line 430: Line 222:


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

Latest revision as of 14:14, 24 April 2026

Api session items Stakeholder Endpoints.

Edit items with event: editorstakeholder.

Default Query:

https://engine.tygron.com/api/session/items/stakeholders/?f=JSON&token=API_TOKEN

Example Response:

[ {
  "active" : true,
  "client" : null,
  "color" : {
    "argb" : -3355444
  },
  "id" : 0,
  "imageName" : "municipality.png",
  "imageVersion" : 0,
  "lastSelected" : 1774446787083,
  "name" : "Municipality Arnhem",
  "shortName" : "Arnhem",
  "startBudget" : 0.0,
  "startBudgets" : {
    "0" : 1000000.0
  },
  "startCinematics" : {
    "0" : 0
  },
  "startPoint" : null,
  "type" : "MUNICIPALITY",
  "version" : 6,
  "webToken" : "RHVXnEVpNcbfEBNQKWmwxAXQ"
}, {
  "active" : true,
  "client" : null,
  "color" : {
    "argb" : -360334
  },
  "id" : 1,
  "imageName" : "civilian.png",
  "imageVersion" : 0,
  "lastSelected" : 1741957674390,
  "name" : "Inhabitants",
  "shortName" : "Inhabitants",
  "startBudget" : 0.0,
  "startBudgets" : {
    "0" : 0.0
  },
  "startCinematics" : {
    "0" : 0
  },
  "startPoint" : null,
  "type" : "CIVILIAN",
  "version" : 5,
  "webToken" : "NZPc6qRkfTYYjmDPjywXADjj"
} ]

Limit Queries

version=100:

https://engine.tygron.com/api/session/items/stakeholders/?version=100&token=API_TOKEN

Show Queries

max version:

https://engine.tygron.com/api/session/items/stakeholders/version/?token=API_TOKEN

size:

https://engine.tygron.com/api/session/items/stakeholders/size/?token=API_TOKEN

Formats

HTML:

https://engine.tygron.com/api/session/items/stakeholders/?f=HTML&token=API_TOKEN

JSON:

https://engine.tygron.com/api/session/items/stakeholders/?f=JSON&token=API_TOKEN

CSV:

https://engine.tygron.com/api/session/items/stakeholders/?f=CSV&token=API_TOKEN

SSV:

https://engine.tygron.com/api/session/items/stakeholders/?f=SSV&token=API_TOKEN

SMILE:

https://engine.tygron.com/api/session/items/stakeholders/?f=SMILE&token=API_TOKEN

ZIPJSON:

https://engine.tygron.com/api/session/items/stakeholders/?f=ZIPJSON&token=API_TOKEN

ZIPSMILE:

https://engine.tygron.com/api/session/items/stakeholders/?f=ZIPSMILE&token=API_TOKEN

Api Model Point

API Model description of Point

Name Type Description

Api Model Stakeholder

API Model description of Stakeholder

Name Type Description
active boolean
client ClientData
color TColor
id int
imageName String
imageVersion int
lastSelected long
name String
shortName String
startBudget double
startBudgets Map<int,double>
startCinematics Map<int,int>
startPoint Point
type Type
version int
webToken String

Api Model TColor

API Model description of TColor

Name Type Description

Api Model Type (Stakeholder)

API Enumeration description of Type

Name Description
CIVILIAN
COMPANY
EDUCATION
EXPERT
FARMER
HEALTHCARE
HOUSING_CORPORATION
MUNICIPALITY
MEDIA
PROJECT_DEVELOPER
UTILITY_CORPORATION
WATER_AUTHORITY
OTHER_AUTHORITY
OTHER