Api session event editor measure set cost: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Set the costs of a Measure of a particular cost type (construction, demolition) and wether it is fixed or cost per cubic meter. {|class=wikitable !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..."
 
No edit summary
Line 1: Line 1:
API Event to Set the costs of a [[Measure]] of a particular cost type (construction, demolition) and wether it is fixed or cost per cubic meter.
API Event to Set the costs of a Measure of a particular cost type (construction, demolition) and wether it is fixed or cost per cubic meter.
{|class=wikitable
{|class=wikitable
!Name
!Name
Line 10: Line 10:
|REQUIRED
|REQUIRED
|(MEASURE Integer ID)
|(MEASURE Integer ID)
|[[Measure]] ID
|Measure ID
|
|
|-
|-
Line 16: Line 16:
|REQUIRED
|REQUIRED
|(Enumeration)
|(Enumeration)
|[[Cost]] Type
|Cost Type
|CONSTRUCTION
|CONSTRUCTION
|-
|-
Line 22: Line 22:
|REQUIRED
|REQUIRED
|(Floating point number)
|(Floating point number)
|[[Cost]] in valuata
|Cost in valuata
|
|
|-
|-
Line 46: Line 46:


with content:  
with content:  
<pre>[ 74, "CONSTRUCTION", 64, false ]
<pre>[ 82, "CONSTRUCTION", 83, true ]
</pre>
</pre>
{{article end|seealso=*[[api session event editor measure]]}}
{{article end|seealso=*[[api session event editor measure]]}}


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

Revision as of 13:55, 30 March 2026

API Event to Set the costs 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=HTML&token=API_TOKEN

with content:

[ 82, "CONSTRUCTION", 83, true ]