List all roles

How to fetch a collection of roles via API

To fetch a collection of roles, send a GET request to the /api/roles endpoint.

Request

GET https://provisioning.commercelayer.io/api/roles

Example

The following request fetches a collection of roles:

curl -g -X GET \
  'https://provisioning.commercelayer.io/api/roles/' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer {{your_access_token}}'

Remember that when you fetch a list of resources you get paginated result.

Sortable fields

The list of roles can be sorted by the following fields:

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

Filterable fields

The list of roles can be filtered by the following fields:

Attributes

  • name

  • kind

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

  • metadata

Relationships

  • organization

  • permissions

  • memberships

  • api_credentials

Last updated