Skip to content
VANGUARD OpenAPI
Main Navigation
API Reference
Appearance
Menu
Return to top
Add role
POST
/user/{id}/role
This route is used to add roles to a user
Authorizations
bearer
Type
HTTP (bearer)
Parameters
Path Parameters
id
*
The id of the user you want to add roles to
Type
integer
Required
Request Body
application/json
Schema
JSON
JSON
{
"roleIds"
:
[
0
]
}
Responses
200
400
401
404
500
Content-Type
application/json
Schema
JSON
JSON
{
}
POST
/user/{id}/role
Playground
Server
Select a server...
Authorization
bearer
Variables
Key
Value
id
*
Body
Try it out
Samples
Powered by
VitePress OpenAPI