Skip to content
VANGUARD OpenAPI
Main Navigation
API Reference
Appearance
Menu
Return to top
Create one role
POST
/role/create
The route used to create a new role
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
Schema
JSON
JSON
{
"name"
:
"string"
,
"parentId"
:
"string"
,
"rightIds"
:
[
]
}
Responses
200
400
401
404
500
Content-Type
application/json
Schema
JSON
JSON
{
}
POST
/role/create
Playground
Server
Select a server...
Authorization
bearer
Body
Try it out
Samples
Powered by
VitePress OpenAPI