# Production Sessions Endpoints for managing production sessions (open, close, update) ## Create a new production session - [POST /api/control/production/sessions](https://docs.hydrobit.ag/spec/openapi/production-sessions/createproductionsession.md): Opens a new production session for a specific project, sector, and day. Requires JWT token authentication in the Authorization header. Key features: - Automatically resolves company context from authenticated user - Resolves project timezone for day normalization - Ensures uniqueness: only one open session per (company, project, day, sector) - Supports custom pricing, bonuses, and duration settings - Defaults are inherited from project configuration if not provided ## Get a production session - [GET /api/control/production/sessions/{sessionId}](https://docs.hydrobit.ag/spec/openapi/production-sessions/getproductionsession.md): Retrieves detailed information about a specific production session. Requires JWT token authentication in the Authorization header. Only the session owner (user who opened it) can view the session. ## Update session metadata - [PATCH /api/control/production/sessions/{sessionId}](https://docs.hydrobit.ag/spec/openapi/production-sessions/updateproductionsession.md): 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 ## Close a production session - [POST /api/control/production/sessions/{sessionId}/close](https://docs.hydrobit.ag/spec/openapi/production-sessions/closeproductionsession.md): Closes an open production session. Requires JWT token authentication in the Authorization header. Only the session owner can close it. Session must be open. ## Extend session duration - [POST /api/control/production/sessions/{sessionId}/extend](https://docs.hydrobit.ag/spec/openapi/production-sessions/extendproductionsession.md): Extends the maximum duration of an open production session. Requires JWT token authentication in the Authorization header. Only the session owner can extend it. Session must be open.