GuideLab API

Archive a patient

Archives a patient by setting its archivedAt timestamp. Fails if the patient has active (non-archived) orders. Lab-only endpoint.

POST
/archive/patients

Archives a patient by setting its archivedAt timestamp. Fails if the patient has active (non-archived) orders. Lab-only endpoint.

Authorization

__Secure-guidelab-prod.session_token<token>

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

In: cookie

Response Body

application/json

curl -X POST "https://example.com/archive/patients"
{  "success": true,  "patient": {    "id": "string",    "firstName": "string",    "lastName": "string",    "archivedAt": "string"  },  "warning": "string"}
Empty
Empty
Empty
Empty