v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
🔐 Authentication

Assign role

The API endpoint allows administrators to change the roles of users within the system.

This functionality is restricted to users with the ADMIN role, ensuring that only authorized personnel can modify user roles.

It provides an essential tool for managing user permissions and ensuring proper authorization levels within the system.

post/users/assign-role/{userId}

Request body

rolestring

Example request

{
  "role": "ADMIN"
}

Response

Assign role

dataobject
messagestring
statusCodenumber
successboolean

Example response

{
  "message": "Role changed for the user",
  "statusCode": 200,
  "success": true
}