共用方式為


ReplacePrivilegesRole Action

Replaces the privilege set of an existing role.

Bound entities

Bound actions are invoked by appending the fully qualified action name to the URI representing an entity or collection.

Entity Type Binding Type
role entity

Parameters

Parameters allow for data to be passed to the action.

Name Type Nullable Unicode Description
Privileges
Collection(RolePrivilege) False True

An array that contains the IDs and depths of the privileges that replace the existing privileges.

See also