Skip to content

POST /disenroll

  • Purpose: Disenroll an actively enrolled patient from a CBO’s GLP-1 weight-loss program
  • Auth: Authorization: Bearer <access_token>
  • Content-Type: application/json
  • Idempotent: No – calling this a second time for the same patient yields a 400 Bad Request error

Request Body Schema

Field Type Required Notes
thcoPatientID string Yes Telehealth platform’s patient identifier.
reason string No Human-readable reason for disenrollment.
{
  "thcoPatientID": "10",
  "reason": "No longer want to continue therapy"
}

Success 200 OKUser is disenrolled

{"reason": "No longer want to continue therapy", "thcoPatientID": 10}
{
    "data": {},
    "message": "User is disenrolled",
    "success": true
}

Error Responses for POST /disenroll

400 Bad Request - Patient was not Enrolled

{
    "error": {
        "code": "BAD_REQUEST",
        "details": "patient is not enrolled"
    },
    "message": "Bad request",
    "success": false
}

400 Bad Request - Missing thcoPatientID

{
    "error": {
        "code": "BAD_REQUEST",
        "details": "patient id is not provided"
    },
    "message": "Bad request",
    "success": false
}