Updates an existing template.
Use this method if you want to update the lines of an existing template. Multi-Unit users can only update templates they created. Admin users can update any template. Permissions: Administrator, MultiUnit users. MenuCostingAndAnalysis api family.
Path Parameters
- Type: integerFormat: int32idrequired
Template identifier.
Headers
- Type: stringD
C Key The Integration Key generated for API Authentication by the PAR OPS support team as part of the integration/partnership process.
Body
Template update data containing the new lines.
- Type:Properties: 6
Responses
- 200
OK
Request Example for put/v2/MenuCosting/Templates/{id}
curl /v2/MenuCosting/Templates/1 \
--request PUT \
--header 'Content-Type: application/json-patch+json' \
--header 'DCKey: YOUR_SECRET_TOKEN' \
--data '[
{
"ItemID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
"MeasureID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
"Category": "",
"AdjustedPrice": null,
"AdjustedCost": null,
"SubItems": [
{
"ItemID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
"MeasureID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
"AdjustedPopularity": null,
"AdjustedPrice": null,
"AdjustedCost": null
}
]
}
]'
No Body
