Record a lot event
privi_record_eventAppend an event to a lot's history (manufacturers only). Requires 'Authorization: Bearer ' with a key from PRIVI_WRITE_KEYS. Over stdio, writes are allowed only when PRIVI_ALLOW_LOCAL_WRITES=1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | Yes | Company or person responsible | |
| notes | No | ||
| product | No | Product name or part number | |
| location | Yes | Where it happened, e.g. 'Plant 2, Port Huron MI' | |
| lot_code | Yes | Lot or batch code | |
| quantity | No | Quantity with units, e.g. '500 kg' | |
| event_type | Yes | One of: received, produced, inspected, shipped, transferred, recalled |