Modifies the MembershipRoles of a Membership.
HTTP request
POST https://cloudidentity.googleapis.com/v1/{name=groups/*/memberships/*}:modifyMembershipRoles
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| name | 
 Required. The resource name of the  Must be of the form  | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "addRoles": [ { object ( | 
| Fields | |
|---|---|
| addRoles[] | 
 The  Adding or removing roles in the same request as updating roles is not supported. Must not be set if  | 
| removeRoles[] | 
 The  Adding or removing roles in the same request as updating roles is not supported. It is not possible to remove the  Must not contain  | 
| updateRolesParams[] | 
 The  Updating roles in the same request as adding or removing roles is not supported. Must not be set if either  | 
Response body
The response message for MembershipsService.ModifyMembershipRoles.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "membership": {
    object ( | 
| Fields | |
|---|---|
| membership | 
 The  | 
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/cloud-identity.groups
- https://www.googleapis.com/auth/cloud-identity
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authorization guide.
UpdateMembershipRolesParams
The details of an update to a MembershipRole.
| JSON representation | 
|---|
| {
  "fieldMask": string,
  "membershipRole": {
    object ( | 
| Fields | |
|---|---|
| fieldMask | 
 The fully-qualified names of fields to update. May only contain the field  This is a comma-separated list of fully qualified names of fields. Example:  | 
| membershipRole | 
 The  Only  |