Skip to content

DeleteRole

Luis Huertas edited this page Feb 7, 2022 · 1 revision

Deletes an user

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'

Request

type: params

{
  "roleId": 1
}

Request Fields Description

key value description
roleId 1 the id of the role

Response

{
  "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
Clone this wiki locally