Bulk upsert from CSV upload
POST/api/v1/pms/meal-costs/upload-csv
Multipart/form-data upload. Field name file. Use the /sample endpoint to download a template. A BASE_PLUS_EXTRA row carries its config in the baseGuestCount, basePrice, perExtraAdultCost, perExtraChildCost and extraDiscountPercent columns; leave those blank for PER_PERSON. The whole file is validated before anything is saved, and every fault is reported with its row number.
Request
Responses
- 200
- 400
- 500
CSV processed.
Empty file or parse error.
I/O error.