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

Girdiler

websiteId

zorunlu

objectTypeId

zorunlu

roleId

isteğe bağlı

label

isteğe bağlı

permissions

isteğe bağlı

dryRun

isteğe bağlı

Şema

{
  "name": "save_user_role",
  "group": "access",
  "inputFields": [
    {
      "name": "websiteId",
      "required": true
    },
    {
      "name": "objectTypeId",
      "required": true
    },
    {
      "name": "roleId",
      "required": false
    },
    {
      "name": "label",
      "required": false
    },
    {
      "name": "permissions",
      "required": false
    },
    {
      "name": "dryRun",
      "required": false
    }
  ]
}

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