younifyd
Menu

Get All Roles

Get all roles

GET/spaces/{spaceId}/roles

Use it in a workflow

  1. Add a step and choose the Contentful connector.
  2. Pick the Get All Roles action (under Contentful Content Management API).
  3. Fill in the fields below, then reference the result from later steps as {{getAllRoles.response.data}}.

Request

Path parameters

spaceIdstringrequired

ID of the space

Query parameters

limitinteger

Maximum number of items to return

Default 100

skipinteger

Number of items to skip

Default 0

Response

Returns 200 with an object. Read it in later steps with {{getAllRoles.response.data.<field>}}.

sysobject
typestring

The type of the resource (e.g., "Array").

totalinteger

The total number of roles.

skipinteger

The number of skipped items.

limitinteger

The maximum number of items returned.

itemsarray<object>

The list of roles.

sysobjectrequired
namestringrequired

The name of the role.

descriptionstringrequired

A short description of the role.

permissionsobject

A map of permissions associated with the role.

policiesarray<any>

A map of permissions associated with the role.

json
{
  "sys": {
    "type": "string",
    "total": 0,
    "skip": 0,
    "limit": 0
  },
  "items": [
    {
      "sys": {},
      "name": "string",
      "description": "string",
      "permissions": {},
      "policies": [
        null
      ]
    }
  ]
}

Need more? See the Contentful guide for connection setup and behaviour shared by every action.