Api session event editor measure set cost: Difference between revisions
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 |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
API Event to Set the | 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. | ||
{|class=wikitable | {|class=wikitable | ||
!Name | !Name | ||
| Line 28: | Line 28: | ||
|REQUIRED | |REQUIRED | ||
|(true, false) | |(true, false) | ||
|Fixed (if false, | |Fixed (if false, [[Cost]] per cubic meter) | ||
|true or false | |true or false | ||
|} | |} | ||
| Line 43: | Line 43: | ||
|} | |} | ||
===Example POST=== | ===Example POST=== | ||
Example POST: https://engine.tygron.com/api/session/event/editormeasure/set_cost/?f= | Example POST: https://engine.tygron.com/api/session/event/editormeasure/set_cost/?f=JSON&token=API_TOKEN | ||
with content: | with content: | ||
<pre>[ | <pre>[ 45, "CONSTRUCTION", 68, true ] | ||
</pre> | </pre> | ||
{{article end|seealso=*[[ | {{article end|seealso=*[[Api session event editor measure]] | ||
*[[Api session items measures]] | |||
}} | |||
[[Category:API]] | [[Category:API]] | ||
Latest revision as of 12:08, 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:
[ 45, "CONSTRUCTION", 68, true ]