Create a role
POST /api/roles creates a role resource
Required scope: scopes:manage:all
| Request Body — REQUIRED |
|---|
role objectid string | name string | scopes object[]id string | name string | public boolean |
|
|
| Responses |
|---|
| Schema — OPTIONAL |
|---|
data object — OPTIONALid string — OPTIONAL | name string — OPTIONAL | scopes object[] — OPTIONALid string — OPTIONAL | name string — OPTIONAL | public boolean — OPTIONAL |
|
|
|
| Schema — OPTIONAL |
|---|
data object — OPTIONALid string — OPTIONAL | name string — OPTIONAL | scopes object[] — OPTIONALid string — OPTIONAL | name string — OPTIONAL | public boolean — OPTIONAL |
|
|
|
| Schema — OPTIONAL |
|---|
errors object — OPTIONAL |
|
401
The client is unauthorized to access this resource. | Schema — OPTIONAL |
|---|
code string | message string |
|
403
The client is forbidden to access this resource. | Schema — OPTIONAL |
|---|
code string | message string |
|
422
The request payload is invalid. | Schema — OPTIONAL |
|---|
errors object — OPTIONAL |
|