Api session event editor measure set cost: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 46: Line 46:


with content:  
with content:  
<pre>[ 41, "CONSTRUCTION", 86, true ]
<pre>[ 98, "CONSTRUCTION", 12, true ]
</pre>
</pre>
{{article end|seealso=*[[api session event editor measure]]
{{article end|seealso=*[[api session event editor measure]]
*[[api session event editor measure]]
*[[api session items measures]]
}}
}}


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

Revision as of 11:59, 1 April 2026

API Event to Set the Cost of a Measure of a particular Cost type (construction, demolition) and wether it is fixed or Cost per cubic meter.

Name Importance Type Description Values
0 REQUIRED (MEASURE Integer ID) Measure ID
1 REQUIRED (Enumeration) Cost Type CONSTRUCTION
2 REQUIRED (Floating point number) Cost in valuata
3 REQUIRED (true, false) Fixed (if false, Cost per cubic meter) true or false

Response Codes

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

Example POST

Example POST: https://engine.tygron.com/api/session/event/editormeasure/set_cost/?f=JSON&token=API_TOKEN

with content:

[ 98, "CONSTRUCTION", 12, true ]