younifyd
Menu

Get Role

Get a role

GET/spaces/{spaceId}/roles/{roleId}

Use it in a workflow

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

Request

Path parameters

spaceIdstringrequired

ID of the space

roleIdstringrequired

ID of the role

Response

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

sysobject
namestring

The name of the role.

descriptionstring

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": {},
  "name": "string",
  "description": "string",
  "permissions": {},
  "policies": [
    null
  ]
}

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