Menu
Update Role
Update a role
PUT
/spaces/{spaceId}/roles/{roleId}Use it in a workflow
- Add a step and choose the Contentful connector.
- Pick the Update Role action (under Contentful Content Management API).
- Fill in the fields below, then reference the result from later steps as
{{updateRole.response.data}}.
Request
Path parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"name": "Updated Editor",
"description": "Updated description for the role.",
"permissions": {},
"policies": [
null
]
}
Response
Returns 200 with an object. Read it in later steps with {{updateRole.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?