GuideLab API

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.

POST
/work-trays

Create a new work tray with a unique code. Lab-only operation. Returns 409 if a tray with the same code already exists.

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/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