Update a role

Updates an editable role title and adds or revokes its abilities.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects an object.
rolestringRequired<=255 characters
titlestring or nullOptional<=255 characters
abilities_to_grantlist of stringsOptional
revoke_abilitieslist of stringsOptional

Response

The role was updated and its resource was returned.
statusstringOptional
messagestringOptional
datamap from strings to anyOptional

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error