-
Notifications
You must be signed in to change notification settings - Fork 0
DeleteRole
Luis Huertas edited this page Feb 7, 2022
·
1 revision
Deletes an user
Base Url : http://your-app-base-url.com
Endpoint : /auth/role/
Method : DELETE
Auth required : Yes
header key | header value | description |
---|---|---|
Authorization | BEARER jwtToken | access_token generated using /token
|
Permissions required : Access string 'OAUTH2_role:delete'
type: params
{
"roleId": 1
}
Request Fields Description
key | value | description |
---|---|---|
roleId | 1 | the id of the role |
{
"code": 200001,
"message": "Role deleted"
}
Response Fields Description
key | value | description |
---|---|---|
code | 200001 | result code |
message | Role deleted | result message |
Response codes
- If response is success, http status will be 201 and code in body will be 200001
code | description |
---|---|
500000 | Not categorized error |
200001 | Role was deleted |