save_user_role
Create or update a website end-user role (website superadmin). scopeRelationFieldKey on a grant that is true and has no conditions yet is stored as field_compare with leftPath and actor_field both set to that key and op eq, under see_own, see_others, mutate_own, or mutate_others. The saved role returns conditions and does not return scopeRelationFieldKey.
save_user_role · Group: access
Create or update a website end-user role (website superadmin). scopeRelationFieldKey on a grant that is true and has no conditions yet is stored as field_compare with leftPath and actor_field both set to that key and op eq, under see_own, see_others, mutate_own, or mutate_others. The saved role returns conditions and does not return scopeRelationFieldKey.
Inputs
| Field | Required | Notes |
|---|---|---|
websiteId | required | |
objectTypeId | required | |
roleId | optional | |
label | optional | |
permissions | optional | |
dryRun | optional |
Maps to
POST /api/v1/{locale}/{websiteId}/objects/{objectTypeId}/user-roles→ APIPUT /api/v1/{locale}/{websiteId}/objects/{objectTypeId}/user-roles/{roleId}→ API