Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource.
HTTP request
PUT https://bigquery.googleapis.com/bigquery/v2/projects/{projectId}/datasets/{datasetId}
Optional. The version of the provided access policy schema. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.
This version refers to the schema version of the access policy and not the version of access policy. This field's value can be equal or more than the access policy schema provided in the request. For example, * Operations updating conditional access policy binding in datasets must specify version 3. Some of the operations are : - Adding a new access policy entry with condition. - Removing an access policy entry with condition. - Updating an access policy entry with condition. * But dataset with no conditional role bindings in access policy may specify any valid value or leave the field unset. If unset or if 0 or 1 value is used for dataset with conditional bindings, request will be rejected.
[[["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 an existing dataset resource using the \u003ccode\u003ePUT\u003c/code\u003e HTTP method in the BigQuery API.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires both \u003ccode\u003eprojectId\u003c/code\u003e and \u003ccode\u003edatasetId\u003c/code\u003e as path parameters to identify the target dataset.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eaccessPolicyVersion\u003c/code\u003e query parameter is optional and used to specify the version of the access policy schema, with version 3 being mandatory for operations updating conditional access policy bindings.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an instance of the \u003ccode\u003eDataset\u003c/code\u003e resource, and a successful response will also contain an instance of the \u003ccode\u003eDataset\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires one of two OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/bigquery\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: datasets.update\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- [Try it!](#try-it)\n\nUpdates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource.\n\n### HTTP request\n\n`PUT https://bigquery.googleapis.com/bigquery/v2/projects/{projectId}/datasets/{datasetId}`\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 [Dataset](/bigquery/docs/reference/rest/v2/datasets#Dataset).\n\n### Response body\n\nIf successful, the response body contains an instance of [Dataset](/bigquery/docs/reference/rest/v2/datasets#Dataset).\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)."]]