[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["\u003cp\u003eThis page details how to update the metadata for an existing data policy by specifying the resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses the PATCH method with a URL structure that adheres to gRPC Transcoding syntax, and requires specifying a \u003ccode\u003edataPolicy.name\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eUpdates are managed using the \u003ccode\u003eupdateMask\u003c/code\u003e and \u003ccode\u003eallowMissing\u003c/code\u003e query parameters, with specific restrictions on modifiable fields.\u003c/p\u003e\n"],["\u003cp\u003eThe request and response bodies both involve instances of the DataPolicy resource, as defined in the provided documentation links.\u003c/p\u003e\n"],["\u003cp\u003eAuthorizing this request requires specific OAuth scopes and IAM permissions, outlined within the content, to access the resources.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.dataPolicies.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nUpdates the metadata for an existing data policy. The target data policy can be specified by the resource name.\n\n### HTTP request\n\n`PATCH https://bigquerydatapolicy.googleapis.com/v1/{dataPolicy.name=projects/*/locations/*/dataPolicies/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [DataPolicy](/bigquery/docs/reference/bigquerydatapolicy/rest/v1/projects.locations.dataPolicies#DataPolicy).\n\n### Response body\n\nIf successful, the response body contains an instance of [DataPolicy](/bigquery/docs/reference/bigquerydatapolicy/rest/v1/projects.locations.dataPolicies#DataPolicy).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/bigquery`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `routine` resource:\n\n- `bigquery.routines.get`\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `bigquery.dataPolicies.update`\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `taxonomy` resource:\n\n- `datacatalog.taxonomies.get`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]