Create a printer
Creates a new printer. The assigned room must belong to the current lab and have layoutType='production'.
Creates a new printer. The assigned room must belong to the current lab and have layoutType='production'.
__Secure-guidelab-prod.session_token<token>
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/production/printers" \ -H "Content-Type: application/json" \ -d '{ "roomId": "string", "name": "string" }'{ "printer": { "id": "string", "labId": "string", "roomId": "string", "name": "string", "model": "string", "material": "string", "status": "idle", "currentBatchId": "string", "sortOrder": 0, "isActive": true, "createdAt": "string", "updatedAt": "string", "room": { "id": "string", "name": "string", "color": "string" }, "currentBatch": { "id": "string", "name": "string", "status": "string", "startedAt": "string", "orderItems": [ { "id": "string", "orderId": "string", "orderNumber": "string", "productName": "string", "material": "string" } ] } }}Empty
Empty
Empty
Create a print batch POST
Creates a new print batch in queued state. Verifies printer is idle with no current batch and that all order items belong to the lab. Generates a sequential name Batch-YYYYMMDD-XX.
Create a production room POST
Creates a new production room in the current lab. Automatically assigns the next sort order if not specified.