log_meat
Log a new meat processing batch and record the resulting cuts to freezer inventory. Requires farmId and apiKey authorization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date processed in YYYY-MM-DD format (defaults to today) | |
| part | Yes | The cut/part type (e.g., Whole Bird, Breast, Leg). Will be validated against configured farm parts if set. | |
| notes | No | Optional notes | |
| units | Yes | Measurement units for quantity | |
| farmId | Yes | The unique farm ID | |
| batchId | No | Optional unique batch/hatch ID associated with these birds | |
| confirm | No | Set to true to persist the write, otherwise returns a dry-run preview | |
| variety | Yes | The species or breed variety processed (e.g., Jumbo Coturnix) | |
| quantity | Yes | Positive integer quantity of units processed | |
| totalWeight | No | Optional total weight of the batch (used to calculate average weight) | |
| weightPerUnit | No | Optional average weight per processed unit | |
| idempotencyKey | No | Optional unique client-provided key to prevent duplicate processing |