Update or create a role. Note: some roles are protected from modification, namely: all, anonymous, user, and admin. Attempts to alter them will fail.
PUT /api/v1/role/student HTTP/1.1
Accept: application/json
Authorization: Bearer ...
{
"description": "A student.",
"type": "role"
}
----------------------------------------
HTTP/1.1 204 No ContentAuthentication is required and access is limited to admins.
| Name | Description | Value |
|---|---|---|
| roleId | the identifier of the role to update or create; IDs must contain only lower-case letters, numbers, and hyphens. | string |
NONE
| Name | Description | Value |
|---|---|---|
| description | the description of the role | string |
| type | the type of the role | one of:
|
Successful responses are code 204. Error responses are standard.
NONE