put
https://api.picussecurity.com/v1/users//role
Assign Role; User ID, Role ID
About
This endpoint modifies a user’s permissions by assigning a new role. It updates the role of a specific user by user ID. The new role ID must be provided in the request body.
Example
curl -X PUT "https://api.picussecurity.com/v1/users/12345/role" \
-H "Access-Token: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"role_id": 2
}'{
"success": true
}Path Parameters
userId(required, uint): ID of the user whose role will be changed