---
title: "saveDailyPreps (beta)"
method: POST
path: "/dailyprep/v1/saveDailyPreps"
tags: ["Daily Prep Service"]
---

# saveDailyPreps (beta)

`POST /dailyprep/v1/saveDailyPreps`

Saves Daily Prep transactions for a location. Supports creating, updating, finalizing, or canceling a Daily Prep based on the `action` field.

## Headers

- `authenticationtoken` string, required
- `password` string, required
- `sitename` string, required
- `userid` string, required
- `X-B3-TraceId` string

## Request body

- DailyPrepDetailsList — Daily prep records to save
  - `locationCode` string, required — The Code for the Location associated with the Daily Prep. Required for all flows (create, edit, cancel).
  - `dailyPreps` DailyPrepSaveDto[], required — Daily Prep records to save. Required for all flows (create, edit, cancel).
    - `dailyPrepId` string — Daily Prep Identifier. Required for edit and cancel flows (identifies the existing Daily Prep to update or cancel). Must be omitted on create — a new Daily Prep is generated.
    - `action` 'SAVE' | 'FINALIZE' | 'CANCEL', required — Action to perform on the Daily Prep. Required for all flows. Allowed values: `SAVE` (save in Incomplete status), `FINALIZE` (save and finalize as Completed), `CANCEL` (cancel an existing Daily Prep — requires `dailyPrepId`).
    - `dailyPrepDate` string — Daily Prep Date in `MM/dd/yyyy` format — the date the Daily Prep is recorded for inventory. Required on create. Ignored on edit and cancel.
    - `startTime` string — Start Time of the Daily Prep in `HH:mm` (24hr) format. Optional on create. Ignored on edit and cancel.
    - `description` string — Free-text Daily Prep description. Optional on create; if left blank, the system will populate this with the Daily Prep Date. Ignored on edit and cancel.
    - `prepLocation` string — Name of the Prep Location (Prep Customer) for the Daily Prep. Optional on create. Ignored on edit and cancel.
    - `recipes` object[] — List of recipes included in the Daily Prep. Optional on create and edit. Ignored on cancel. On edit, only the recipes provided are updated; recipes already on the Daily Prep that are not included remain unchanged.
      - `productNumber` string, required — Recipe identifier. Required for each entry in `recipes` (used to match the recipe being created or updated).
      - `actualProd` number, double, required — Planned production quantity for the recipe. Required for each entry in `recipes`. On edit, sending `null` removes the recipe from the Daily Prep.

## Response `200`

Success

- DailyPrepDetailsList — Daily prep records to save
  - `locationCode` string, required — The Code for the Location associated with the Daily Prep. Required for all flows (create, edit, cancel).
  - `dailyPreps` DailyPrepSaveDto[], required — Daily Prep records to save. Required for all flows (create, edit, cancel).
    - `dailyPrepId` string — Daily Prep Identifier. Required for edit and cancel flows (identifies the existing Daily Prep to update or cancel). Must be omitted on create — a new Daily Prep is generated.
    - `action` 'SAVE' | 'FINALIZE' | 'CANCEL', required — Action to perform on the Daily Prep. Required for all flows. Allowed values: `SAVE` (save in Incomplete status), `FINALIZE` (save and finalize as Completed), `CANCEL` (cancel an existing Daily Prep — requires `dailyPrepId`).
    - `dailyPrepDate` string — Daily Prep Date in `MM/dd/yyyy` format — the date the Daily Prep is recorded for inventory. Required on create. Ignored on edit and cancel.
    - `startTime` string — Start Time of the Daily Prep in `HH:mm` (24hr) format. Optional on create. Ignored on edit and cancel.
    - `description` string — Free-text Daily Prep description. Optional on create; if left blank, the system will populate this with the Daily Prep Date. Ignored on edit and cancel.
    - `prepLocation` string — Name of the Prep Location (Prep Customer) for the Daily Prep. Optional on create. Ignored on edit and cancel.
    - `recipes` object[] — List of recipes included in the Daily Prep. Optional on create and edit. Ignored on cancel. On edit, only the recipes provided are updated; recipes already on the Daily Prep that are not included remain unchanged.
      - `productNumber` string, required — Recipe identifier. Required for each entry in `recipes` (used to match the recipe being created or updated).
      - `actualProd` number, double, required — Planned production quantity for the recipe. Required for each entry in `recipes`. On edit, sending `null` removes the recipe from the Daily Prep.

## Other responses

- `400` — Validation Error
- `401` — Authorization
- `404` — Daily Prep transactions not found
- `429` — Too Many Requests
- `500` — Unexpected Error
- `503` — Service Unavailable
- `504` — Timeout

---

[API](https://skmtc.net/crunchtime/apis/inventory-labor.md) · [All operations](https://skmtc.net/crunchtime/apis/inventory-labor/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crunchtime/inventory-labor/revisions/0af8e380ff2c/schema)
