Updates the roles of a user in Parchment
access_roles array completely replaces the user’s current roles.update:user scope to modify user roles.requestId for debugging support requests.| Field | Type | Required | Description |
|---|---|---|---|
access_roles | string[] | Yes | Array of roles to assign to the user |
| Role | Description |
|---|---|
admin | Administrator with extensive permissions |
provider | Healthcare provider/prescriber |
receptionist | Front desk/reception staff |
rx_reader | Read-only access to prescriptions |
rx_queue_manager | Manage prescription queues coming soon |
access_roles is required and must be an arrayaccess_roles must contain at least one role (cannot be empty)| Field | Type | Description |
|---|---|---|
user_id | string | Parchment’s unique user identifier |
access_roles | string[] | Updated array of roles assigned to user |
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the request was successful |
statusCode | number | HTTP status code |
timestamp | string | ISO 8601 timestamp of the response |
requestId | string | Unique identifier for debugging |
| Code | Status | Description |
|---|---|---|
200 | OK | User roles successfully updated |
400 | Bad Request | Invalid request format or invalid parameters |
401 | Unauthorized | Authentication required or token invalid |
403 | Forbidden | Insufficient permissions (missing update:user scope) |
404 | Not Found | User not found |
409 | Conflict | Role update conflict |
422 | Unprocessable Entity | Request validation failed |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Unexpected server error |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Organization secret for authentication - provided by Parchment
Organization ID
User ID
User roles data to update in Parchment
User roles update request
Array of roles to assign to the user
Valid user roles. Note: owner, support, and member roles cannot be assigned via API.
admin, provider, receptionist, rx_reader, rx_queue_manager ["admin", "provider"]User roles updated successfully
Indicates if the request was successful
true
HTTP status code
200
Human-readable success message
"User roles updated successfully"
Response payload data User roles update response data
ISO 8601 timestamp of the response
"2024-01-15T10:30:00.000Z"
Unique identifier for request tracing
"req_1705312200000_abc123"
Pagination information for list operations