Add a role

POST {{baseUrl}}/roles

Adds a new role.

Request Body

{"name"=>"<string>", "parent_role_id"=>"<integer>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:2}}