Set a user's role (admin only)
Assigns any role, including `admin` and `researcher` which can't be self-assigned via `/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.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/users/role" \ -H "Content-Type: application/json" \ -d '{ "user_id": "string", "role": "patient" }'null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}