GuideLab API

Create a printer

Creates a new printer. The assigned room must belong to the current lab and have layoutType='production'.

POST
/production/printers

Creates a new printer. The assigned room must belong to the current lab and have layoutType='production'.

Authorization

__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