Admin: Roles

PUT /api/admin/management/role_permissions/{roleId}

Changed on

Replace the permission matrix for a role.

Request

  • The document declares no server URL.
  • Auth
    API key in cookie session

Path parameters

roleIdinteger required

Request body

grantsstring[] required

The declared Permissions the role holds, replacing its current set. Names must come from the catalog (GET /admin/management/permissions).

Response

The request has succeeded.

idinteger required
namestring required
descriptionstring nullable required
grantsstring[] required

Names of the declared Permissions the role holds (see Permission).

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the optional property to the response with the status

    • breaking

      added the new required request property

    • breaking

      removed the required property from the response with the status

    • warning

      removed the request property

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status