GuideLab API

Assign or unassign a work tray to a stage (lab only)

Sets orderPhase.workTrayId for one stage. A tray can occupy at most one active stage at a time; pass null workTrayId to unassign.

PATCH
/orders/{id}/phases/{phaseId}/work-tray

Sets orderPhase.workTrayId for one stage. A tray can occupy at most one active stage at a time; pass null workTrayId to unassign.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Path Parameters

id*string
phaseId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/orders/string/phases/string/work-tray" \  -H "Content-Type: application/json" \  -d '{    "workTrayId": "string"  }'
{  "workTrayId": "string",  "workTray": {    "id": "string",    "code": "string",    "color": "string"  }}
Empty
Empty
{  "error": "string",  "conflict": {    "orderPhaseId": "string",    "phaseName": "string",    "orderId": "string",    "orderNumber": "string",    "sameOrder": true  }}