Create Work Tray
Create a new work tray with a unique code. Lab-only operation. Returns 409 if a tray with the same code already exists.
Create a new work tray with a unique code. Lab-only operation. Returns 409 if a tray with the same code already exists.
__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/work-trays" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'{ "tray": { "id": "string", "labId": "string", "code": "string", "color": "string", "description": "string", "isActive": true, "sortOrder": 0, "createdAt": "string", "updatedAt": "string" }}Empty
Empty
Empty
Empty
Batch Create Work Trays POST
Bulk-create work trays from a pattern and quantity. Generates sequentially numbered codes (e.g. TRAY001, TRAY002). Skips duplicates. Lab-only operation.
Delete Work Tray DELETE
Soft-delete a work tray by marking it as inactive. Unassigns the tray from any active orders before deactivating. Lab-only operation.