HOC SiteDokümantasyon

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 · Grup: 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.

Girdiler

FieldRequiredNotes
websiteIdrequired
objectTypeIdrequired
roleIdoptional
labeloptional
permissionsoptional
dryRunoptional

Eşlendiği uçlar

  • POST /api/v1/{locale}/{websiteId}/objects/{objectTypeId}/user-roles → API
  • PUT /api/v1/{locale}/{websiteId}/objects/{objectTypeId}/user-roles/{roleId} → API

İlgili