[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2024-05-23 UTC."],[[["\u003cp\u003eThis page details how to update the metadata for an existing data policy using a \u003ccode\u003ePATCH\u003c/code\u003e HTTP request targeting a specific resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edataPolicy.name\u003c/code\u003e path parameter is required to identify the data policy, and it uses the format \u003ccode\u003eprojects/{projectNumber}/locations/{locationId}/dataPolicies/{dataPolicyId}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eupdateMask\u003c/code\u003e query parameter is used to specify which fields of the data policy to update, with default behavior being to update all updatable fields.\u003c/p\u003e\n"],["\u003cp\u003eThe request body and the response body are both instances of the \u003ccode\u003eDataPolicy\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eUpdating a Data Policy requires one of the following OAuth scopes:\u003ccode\u003ehttps://www.googleapis.com/auth/bigquery\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e along with the \u003ccode\u003ebigquery.dataPolicies.update\u003c/code\u003e and \u003ccode\u003edatacatalog.taxonomies.get\u003c/code\u003e IAM permissions.\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/v1beta1/{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/v1beta1/projects.locations.dataPolicies#DataPolicy).\n\n### Response body\n\nIf successful, the response body contains an instance of [DataPolicy](/bigquery/docs/reference/bigquerydatapolicy/rest/v1beta1/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 `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)."]]