# Update session metadata Updates metadata of an open production session. Requires JWT token authentication in the Authorization header. Only the session owner can update. Session must be open. Updatable fields: samplingUnit, pricePerUnit, bonus, notes Endpoint: PATCH /api/control/production/sessions/{sessionId} Version: 2.0.0 Security: bearerAuth ## Path parameters: - `sessionId` (string, required) Session identifier (unique identifier) Example: "6507f1e3c9d8e2a4b1f9c3d5" ## Request fields (application/json): - `auth0Id` (string, required) User identifier (internal use, derived from JWT token) Example: "user_123456789" - `samplingUnit` (string) Example: "kg" - `pricePerUnit` (number) Example: 6 - `bonus` (object) - `bonus.type` (string, required) Bonus type (flat amount or percentage) Enum: "flat", "percent" - `bonus.value` (number, required) Bonus value (0-100 for percent, any positive for flat) Example: 10 - `bonus.note` (string) Optional note about the bonus Example: "High quality bonus" - `notes` (string) Example: "Updated notes" ## Response 200 fields (application/json): - `status` (string) Example: "success" - `data` (object) - `data.updated` (boolean) Example: true ## Response 400 fields (application/json): - `status` (string) Example: "error" - `message` (string) Example: "Error message description" - `error` (string) Example: "Detailed error information" ## Response 401 fields (application/json): - `status` (string) Example: "error" - `message` (string) Example: "Error message description" - `error` (string) Example: "Detailed error information" ## Response 403 fields (application/json): - `status` (string) Example: "error" - `message` (string) Example: "Error message description" - `error` (string) Example: "Detailed error information" ## Response 404 fields (application/json): - `status` (string) Example: "error" - `message` (string) Example: "Error message description" - `error` (string) Example: "Detailed error information" ## Response 409 fields (application/json): - `status` (string) Example: "error" - `message` (string) Example: "Error message description" - `error` (string) Example: "Detailed error information" ## Response 500 fields (application/json): - `status` (string) Example: "error" - `message` (string) Example: "Error message description" - `error` (string) Example: "Detailed error information"