# Close a production session Closes an open production session. Requires JWT token authentication in the Authorization header. Only the session owner can close it. Session must be open. Endpoint: POST /api/control/production/sessions/{sessionId}/close 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" ## Response 200 fields (application/json): - `status` (string) Example: "success" - `data` (object) - `data.sessionId` (string) Example: "6507f1e3c9d8e2a4b1f9c3d5" - `data.closedAt` (string) Example: "2025-10-19T18:00:00.000Z" ## 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"