Update a calculation
Returns a full calculation
Authorization
ApiKeyAuth x-api-key<token>
In: header
Path Parameters
objectId*string
voka easy object id
calculationId*string
voka easy calculation id
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/vex/objects/string/calculations/string" \ -H "Content-Type: application/json" \ -d '{ "batchSize": 4, "position": "624.005", "description": "Schrank Hugentobler", "quantity": 2 }'{ "id": "131005fd-ffwb-464a-bf61-ff03efbb3fb3", "updatedAt": "2025-08-06T13:21:19.520Z", "params": { "quantity": 2, "batchSize": 4, "position": "624.001", "description": "Meine Kalkulation" }, "manufacturingCosts": { "summary": { "details": { "ASSEMBLY": { "costCenter": "ASSEMBLY", "hourPerM2": 0.34487139137581224, "hours": 7.188316500000001, "proportion": 0.31563219491054517, "salary": 68.1585, "totalPrice": 489.9448701652501 }, "BENCH": { "costCenter": "BENCH", "hourPerM2": 0.34141119496897593, "hours": 7.116194000000001, "proportion": 0.31246536398741653, "salary": 60.454, "totalPrice": 430.2023920760001 }, "FINISH": { "costCenter": "FINISH", "hourPerM2": 0, "hours": 0, "proportion": 0, "salary": 68.45400000000001, "totalPrice": 0 }, "MACHINE": { "costCenter": "MACHINE", "hourPerM2": 0.2523562855257146, "hours": 5.259980666666666, "proportion": 0.23096078796850866, "salary": 111.6767, "totalPrice": 587.4172829171333 }, "PREPARATORY_WORK": { "costCenter": "PREPARATORY_WORK", "hourPerM2": 0.13573216615723455, "hours": 2.8291293333333334, "proportion": 0.12422439957475541, "salary": 77.34479999999999, "totalPrice": 218.8184424608 }, "SHIPMENT": { "costCenter": "SHIPMENT", "hourPerM2": 0.01826588854926747, "hours": 0.3807245, "proportion": 0.016717253558774136, "salary": 51.8587, "totalPrice": 19.74387762815 }, "SPECIAL_MACHINE": { "costCenter": "SPECIAL_MACHINE", "hourPerM2": 0, "hours": 0, "proportion": 0, "salary": 187.67669999999998, "totalPrice": 0 } }, "manualManufacturingCosts": [], "overall": { "pricePerHour": 76.67078307838635, "proportion": 0.7814043298575927, "totalHours": 22.774345000000004, "totalPrice": 1746.1268652473332 } } }, "materialCosts": { "doorArticles": null, "fittings": { "summary": { "overheadPrice": 5.231838, "overheadRate": 0.03, "price": 179.626438, "quantity": 109.684, "subTotal": 174.3946 } }, "ledgeArticles": { "summary": { "overheadPrice": 0.3096, "overheadRate": 0.060000000000000005, "price": 5.469599999999999, "quantity": 2, "subTotal": 5.159999999999999, "totalM2": 0.1075, "totalSize": 4.3 } }, "plateArticles": { "summary": { "overheadPrice": 32.50479174000001, "overheadRate": 0.12000000000000001, "price": 303.3780562400001, "quantity": 29, "subTotal": 270.87326450000006, "totalM2": 20.73597, "totalSize": 20.73597 } }, "subassemblyArticles": null, "summary": { "overheadPrice": 38.046229740000015, "price": 488.4740942400001, "priceWithoutOverhead": 450.42786450000006, "proportion": 0.21859567014240738 }, "woodArticles": { "summary": { "overheadPrice": 0, "overheadRate": 0.12000000000000001, "price": 0, "quantity": 0, "subTotal": 0, "totalM2": 0, "totalSize": 0 } } }, "metrics": { "frPerM2SurfaceSale": "0", "hourPerM2Ausmass": "4.744655208333334", "hourPerM2Material": "1.0926369265770048", "m2Ausmass": "4.8", "m2Material": 20.84347, "pricePerHour": "126.28025087000304", "pricePerM2Ausmass": "599.15625", "pricePerM2Material": "137.97846519797326", "wsInPricePerHour": "106.50238834530694" }, "summary": { "addedValuePerHour": 118.068265523638, "calculationId": "af178ef6-cf25-445b-a4e4-f1e4dfa44c97", "createdAt": "2025-08-06T09:19:03.543Z", "description": "Meine Kalkulation", "hourPerM2Material": 1.342945602851148, "m2Material": 50.49848, "materialCost": 952.1820969999999, "materialCostPerPiece": 476.0910484999999, "materialCostProportion": 0.1656354641168655, "materialOverheadCost": 84.81233243999999, "objectId": "cmdelkh88000d2ftlt5kmzld1", "order": 0, "position": "12", "pricePerHour": 118.8128973224815, "quantity": 2, "referenceId": "cf25-445b", "salePrice": 4028.75, "surcharge": false, "surchargeValue": 0, "timeForAssembly": 18.672636, "timeForBench": 17.03936266666667, "timeForFinish": 0, "timeForMachine": 15.40519433333333, "timeForPreparatoryWork": 13.12462, "timeForShipment": 3.574898666666667, "timeForSpecialMachine": 0, "timeTotal": 67.81671166666666, "totalPrice": 8057.5, "totalPriceExclSurcharge": 8057.5, "updatedAt": "2025-08-06T09:19:03.543Z" }, "subtotals": { "adminAndSaleCost": 532.1597459358635, "adminAndSaleOverhead": 0.17, "cost": 3662.511192617413, "productionCost": 3130.3514466815495, "riskAndProfitCost": 366.25111926174134, "riskAndProfitOverhead": 0.1, "salePrice": 4028.75, "salePriceProportion": 1, "surcharge": 0, "surchargeProportion": 0, "tariffEasy": false, "tariffEasyAllowed": true, "tariffEasyValues": null }}{ "code": "BAD_USER_INPUT", "message": "string", "details": {}}{ "code": "BAD_USER_INPUT", "message": "string", "details": {}}{ "code": "BAD_USER_INPUT", "message": "string", "details": {}}{ "code": "BAD_USER_INPUT", "message": "string", "details": {}}{ "code": "BAD_USER_INPUT", "message": "string", "details": {}}