Roles
The roles
namespace provides API methods to retrieve all or specific user roles. This page covers the following API methods:
GET /roles
/roles
Returns all roles. Requires site admin access.
This method uses pagination so you might need to request additional pages to retrieve all roles.
Request
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.
This method supports the following expands so you can automatically include additional information for referenced objects:
users
Response
Examples
Status codes
200
400
401
403
422
(details)
GET /roles/{role_id}
/roles/{role_id}
Returns a single role. Requires site admin access.
role_id
id
required
ID of the role to return.
Request
expands
string
Comma-separated list of expands to return.
This method supports the following expands so you can automatically include additional information for referenced objects:
users
Response
Examples
Status codes
200
400
401
403
404
422
(details)
Last updated
Was this helpful?