Roles
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
DELETE |
List all roles
Required API key scopes
organization:readPath parameters
- organization_idstring
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET /api /organizations /:organization_id /rolesExample response
Status 200
RESPONSE
Create roles
Required API key scopes
organization:writePath parameters
- organization_idstring
Request parameters
- namestring
Response
Example request
POST /api /organizations /:organization_id /rolesExample response
Status 201
RESPONSE
Retrieve roles
Required API key scopes
organization:readPath parameters
- idstring
A UUID string identifying this role.
- organization_idstring
Response
Example request
GET /api /organizations /:organization_id /roles /:idExample response
Status 200
RESPONSE
Update roles
Required API key scopes
organization:writePath parameters
- idstring
A UUID string identifying this role.
- organization_idstring
Request parameters
- namestring
Response
Example request
PATCH /api /organizations /:organization_id /roles /:idExample response
Status 200
RESPONSE
Delete roles
Required API key scopes
organization:writePath parameters
- idstring
A UUID string identifying this role.
- organization_idstring
Example request
DELETE /api /organizations /:organization_id /roles /:idExample response
Status 204 No response body
List all roles role memberships
Required API key scopes
organization:readPath parameters
- organization_idstring
- role_idstring
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET /api /organizations /:organization_id /roles /:role_id /role_membershipsExample response
Status 200
RESPONSE
Create roles role memberships
Required API key scopes
organization:writePath parameters
- organization_idstring
- role_idstring
Request parameters
- user_uuidstring
Response
Example request
POST /api /organizations /:organization_id /roles /:role_id /role_membershipsExample response
Status 201
RESPONSE
Delete roles role memberships
Required API key scopes
organization:writePath parameters
- idstring
A UUID string identifying this role membership.
- organization_idstring
- role_idstring
Example request
DELETE /api /organizations /:organization_id /roles /:role_id /role_memberships /:id