Add Role
POST/addrole
This API adds role to user.
The Authorization
must have Bearer
followed by Token
.
Mandatory params:
username
,
rolename
Request
- application/json
Body
rolename string
username string
Responses
- 200
Add Role
Response Headers
Date
string
Server
string
Set-Cookie
string
X-Content-Type-Options
string
- application/json
- Schema
- Example (from schema)
- Add Role
Schema
message string
{
"message": " Tasks created. IDs:: 673975 "
}
{
"message": " Tasks created. IDs:: 673975 "
}
Loading...