Method: organizations.roles.patch

Updates a Role definition.

HTTP request

PATCH https://iam.googleapis.com/v1/{name=organizations/*/roles/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The resource name of the role in one of the following formats: roles/{ROLE_NAME} organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} projects/{PROJECT_ID}/roles/{ROLE_NAME}

Authorization requires the following Google IAM permission on the specified resource name:

  • iam.roles.update

Query parameters

Parameters
updateMask

string (FieldMask format)

A mask describing which fields in the Role have changed.

A comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of Role.

Response body

If successful, the response body contains an instance of Role.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/iam
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Try it!

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Identity and Access Management