Menu
Create Role
Create a role
POST
/spaces/{spaceId}/rolesUse it in a workflow
- Add a step and choose the Contentful connector.
- Pick the Create Role action (under Contentful Content Management API).
- Fill in the fields below, then reference the result from later steps as
{{createRole.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"name": "Editor",
"description": "Can edit content but not publish.",
"permissions": {},
"policies": [
null
]
}
Response
Returns 201 with an object. Read it in later steps with {{createRole.response.data.<field>}}.
{
"sys": {},
"name": "string",
"description": "string",
"permissions": {},
"policies": [
null
]
}
Need more? See the Contentful guide for connection setup and behaviour shared by every action.
Was this page helpful?