Roles
Role List
List all roles and their permissions.
GET
List all roles and their permissions.
cookie
storyden-session<token>OK
application/json- response
roles*array<>curl -X GET 'https://example.com/api/roles'Example Response
{ "roles": [ { "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z", "misc": {}, "name": "string", "colour": "string", "permissions": [ "CREATE_POST" ], "meta": {} } ]}Role Get GET
Retreives a role and all its permissions.
Role Update PATCH
Update a role's attributes. Requires MANAGE_ROLES. Updating a role that already grants ADMINISTRATOR, or granting ADMINISTRATOR to a role, additionally requires ADMINISTRATOR. Updates that would leave no active account with ADMINISTRATOR are rejected with 400.