GuideLab Docs

Save a new revision of the organization's Guidocad design on the order

Appends a version built on `baseRevision`, which must be the design's current revision; a design that changed elsewhere answers 409 with its current revision. Saving the scene that is already current writes nothing new and answers `replayed`. The newest 100 autosaves and 100 saves are kept; a design takes 3 000 writes a day and a lab 30 000.

PUT
/guidocad/orders/{orderId}/design

Appends a version built on baseRevision, which must be the design's current revision; a design that changed elsewhere answers 409 with its current revision. Saving the scene that is already current writes nothing new and answers replayed. The newest 100 autosaves and 100 saves are kept; a design takes 3 000 writes a day and a lab 30 000.

Authorization

__Secure-guidelab-prod.session_token<token>

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

In: cookie

Path Parameters

orderId*string
Length1 <= length <= 200

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/guidocad/orders/string/design" \  -H "Content-Type: application/json" \  -d '{    "baseRevision": 0,    "scene": {      "version": 1,      "engine": "string",      "outputs": [        {          "fileId": "string",          "tooth": 11,          "part": "bottom"        }      ],      "stepId": "string",      "scans": [        {          "fileId": "string",          "role": "upper",          "vertices": 0        }      ],      "teeth": [        {          "tooth": 11,          "marginFileId": "string",          "clicks": [            [              0,              0,              0            ]          ],          "margin": {            "vertices": [              0            ],            "points": [              0            ]          },          "insertion": [            0,            0,            0          ],          "insertionSet": true,          "parameters": {            "property1": 0,            "property2": 0          }        }      ]    }  }'
{  "id": "string",  "revision": 0,  "replayed": true}
Empty
Empty
Empty
{  "error": "string",  "code": "revision_conflict",  "currentRevision": 0}
Empty
Empty