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 CodeError CodeDescription
403HTTP_403Forbidden
401HTTP_401Unauthorized
400HTTP_400Bad Request
404HTTP_404Not Found
500HTTP_500Internal Server Error
500HTTP_500Internal 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 '{}'