Menu
Update Role Mappings
Create/update project role mappings
PUT
/auth/organizations/{organizationId}/providers/{providerId}/projects/{projectId}/role-mappingsUse it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Update Role Mappings action (under Roles).
- Fill in the fields below, then reference the result from later steps as
{{updateRoleMappings.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"fallbackRoleName": "viewer",
"roleMappings": [
{
"id": "string",
"roleName": "editor",
"groupRule": ".*-admin"
}
]
}
Response
Returns 200 with a array<object>. Read it in later steps with {{updateRoleMappings.response.data.<field>}}.
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?