Avycenna

Complete onboarding (self-service role selection)

One-time, self-service equivalent of `/users/role` for a user's own account. Lets a newly-registered user pick their role (patient, doctor, clinic_staff, or clinic_admin) once, right after sign-up. `admin` and `researcher` can't be self-assigned here — an existing admin must grant those via `/users/role`. Fails with 409 if this account has already completed onboarding; use `/users/role` (admin-only) to change role after that point.

POST
/api/v1/users/onboarding

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

x-api-key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Self-service role selection, one-time only (see /users/onboarding).

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/users/onboarding" \  -H "Content-Type: application/json" \  -d '{    "role": "patient"  }'
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}