List all permissions

How to fetch a collection of permissions via API

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

Request

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

Example

The following request fetches a collection of permissions:

curl -g -X GET \
  'https://provisioning.commercelayer.io/api/permissions/' \
  -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 permissions can be sorted by the following fields:

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

Filterable fields

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

Attributes

  • can_create

  • can_read

  • can_update

  • can_destroy

  • subject

  • restrictions

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

  • metadata

Relationships

  • organization

  • role

Last updated