Forums/API

Roles API

Thomas Pedersen
posted this on Feb 16 00:15

Each user has a role, which determines the apps available to them.

Show role

Returns a single role.

GET /api/v1/roles/{id}.xml
<role>
<name>Marketing</name>
</role>

List all

Returns all roles in one list. The body of each role is the same as for show role.

GET /api/v1/roles.xml
<roles type="array">
<roles>
...
</roles>
<roles>
...
</roles>
</roles>