Method: projects.locations.dataPolicies.patch

Stay organized with collections Save and categorize content based on your preferences.

Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Output only. Resource name of this data policy, in the format of projects/{project_number}/locations/{locationId}/dataPolicies/{dataPolicyId}.

Query parameters


string (FieldMask format)

The update mask applies to the resource. For the FieldMask definition, see If not set, defaults to all of the fields that are allowed to update.

Updates to the name and dataPolicyId fields are not allowed.

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

Request body

The request body contains an instance of DataPolicy.

Response body

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

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • bigquery.dataPolicies.update

For more information, see the IAM documentation.