Roles
Last updated
Last updated
The roles
namespace provides API methods to retrieve all or specific user roles. This page covers the following API methods:
/roles
Returns all roles. Requires site admin access.
This method uses pagination so you might need to request additional pages to retrieve all roles.
This method supports the following expands so you can automatically include additional information for referenced objects:
users
200
400
401
403
422
(details)
/roles/{role_id}
Returns a single role. Requires site admin access.
This method supports the following expands so you can automatically include additional information for referenced objects:
users
200
400
401
403
404
422
(details)
page
integer
Number of page to return (default: first page)
per_page
integer
Maximum number of roles to return (supported: 15
, 25
, 50
, 100
; default: 100
)
expands
string
Comma-separated list of expands to return.
role_id
id
required
ID of the role to return.
expands
string
Comma-separated list of expands to return.