Add a role
POST {{baseUrl}}/roles
Adds a new role.
Request Body
{"name"=>"<string>", "parent_role_id"=>"<integer>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":true,"data":{"id":2}}