POST /users/me/update-role
POST /users/me/update-role
Development-only endpoint to update your own role to admin This is a temporary helper for development. Remove or secure this in production. Usage: POST /api/users/me/update-role with body: { role: 'admin' }
Endpoint
POST /users/me/update-role
Authentication
This endpoint requires authentication. Include your authentication token in the request headers.
Error Responses
| Status Code | Error Code | Description |
|---|---|---|
| 403 | HTTP_403 | Forbidden |
| 401 | HTTP_401 | Unauthorized |
| 400 | HTTP_400 | Bad Request |
| 404 | HTTP_404 | Not Found |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
Example Request
curl -X POST "https://api.allurelms.com/users/me/update-role" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'