Send feedback
Method: googleapis.bigquery.v2.datasets.update
Stay organized with collections
Save and categorize content based on your preferences.
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.
Arguments
Parameters
datasetId
string
Required. Dataset ID of the dataset being updated
projectId
string
Required. Project ID of the dataset being updated
body
object (Dataset )
Required.
Raised exceptions
Exceptions
ConnectionError
In case of a network problem (such as DNS failure or refused connection).
HttpError
If the response status is >= 400 (excluding 429 and 503).
TimeoutError
If a long-running operation takes longer to finish than the specified timeout limit.
TypeError
If an operation or function receives an argument of the wrong type.
ValueError
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout.
Response
If successful, the response contains an instance of Dataset
.
Subworkflow snippet
Some fields might be optional or required.
To identify required fields, refer to the API documentation .
YAML
- update :
call : googleapis.bigquery.v2.datasets.update
args :
datasetId : ...
projectId : ...
body :
access :
dataset :
dataset :
datasetId : ...
projectId : ...
targetTypes : ...
domain : ...
groupByEmail : ...
iamMember : ...
role : ...
routine :
datasetId : ...
projectId : ...
routineId : ...
specialGroup : ...
userByEmail : ...
view :
datasetId : ...
projectId : ...
tableId : ...
datasetReference : ...
defaultEncryptionConfiguration :
kmsKeyName : ...
defaultPartitionExpirationMs : ...
defaultTableExpirationMs : ...
description : ...
friendlyName : ...
isCaseInsensitive : ...
labels : ...
location : ...
maxTimeTravelHours : ...
tags :
tagKey : ...
tagValue : ...
result : updateResult
JSON
[
{
"update" : {
"call" : "googleapis.bigquery.v2.datasets.update" ,
"args" : {
"datasetId" : "..." ,
"projectId" : "..." ,
"body" : {
"access" : {
"dataset" : {
"dataset" : {
"datasetId" : "..." ,
"projectId" : "..."
},
"targetTypes" : "..."
},
"domain" : "..." ,
"groupByEmail" : "..." ,
"iamMember" : "..." ,
"role" : "..." ,
"routine" : {
"datasetId" : "..." ,
"projectId" : "..." ,
"routineId" : "..."
},
"specialGroup" : "..." ,
"userByEmail" : "..." ,
"view" : {
"datasetId" : "..." ,
"projectId" : "..." ,
"tableId" : "..."
}
},
"datasetReference" : "..." ,
"defaultEncryptionConfiguration" : {
"kmsKeyName" : "..."
},
"defaultPartitionExpirationMs" : "..." ,
"defaultTableExpirationMs" : "..." ,
"description" : "..." ,
"friendlyName" : "..." ,
"isCaseInsensitive" : "..." ,
"labels" : "..." ,
"location" : "..." ,
"maxTimeTravelHours" : "..." ,
"tags" : {
"tagKey" : "..." ,
"tagValue" : "..."
}
}
},
"result" : "updateResult"
}
}
]
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
Need to tell us more?
[[["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-09-04 UTC."],[],[],null,["# Method: googleapis.bigquery.v2.datasets.update\n\nUpdates information in an existing dataset. The update method replaces\nthe entire dataset resource, whereas the patch method only replaces\nfields that are provided in the submitted dataset resource.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`Dataset`](/workflows/docs/reference/googleapis/bigquery/v2/Overview#Dataset).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/update). \n\n### YAML\n\n```yaml\n- update:\n call: googleapis.bigquery.v2.datasets.update\n args:\n datasetId: ...\n projectId: ...\n body:\n access:\n dataset:\n dataset:\n datasetId: ...\n projectId: ...\n targetTypes: ...\n domain: ...\n groupByEmail: ...\n iamMember: ...\n role: ...\n routine:\n datasetId: ...\n projectId: ...\n routineId: ...\n specialGroup: ...\n userByEmail: ...\n view:\n datasetId: ...\n projectId: ...\n tableId: ...\n datasetReference: ...\n defaultEncryptionConfiguration:\n kmsKeyName: ...\n defaultPartitionExpirationMs: ...\n defaultTableExpirationMs: ...\n description: ...\n friendlyName: ...\n isCaseInsensitive: ...\n labels: ...\n location: ...\n maxTimeTravelHours: ...\n tags:\n tagKey: ...\n tagValue: ...\n result: updateResult\n```\n\n### JSON\n\n```json\n[\n {\n \"update\": {\n \"call\": \"googleapis.bigquery.v2.datasets.update\",\n \"args\": {\n \"datasetId\": \"...\",\n \"projectId\": \"...\",\n \"body\": {\n \"access\": {\n \"dataset\": {\n \"dataset\": {\n \"datasetId\": \"...\",\n \"projectId\": \"...\"\n },\n \"targetTypes\": \"...\"\n },\n \"domain\": \"...\",\n \"groupByEmail\": \"...\",\n \"iamMember\": \"...\",\n \"role\": \"...\",\n \"routine\": {\n \"datasetId\": \"...\",\n \"projectId\": \"...\",\n \"routineId\": \"...\"\n },\n \"specialGroup\": \"...\",\n \"userByEmail\": \"...\",\n \"view\": {\n \"datasetId\": \"...\",\n \"projectId\": \"...\",\n \"tableId\": \"...\"\n }\n },\n \"datasetReference\": \"...\",\n \"defaultEncryptionConfiguration\": {\n \"kmsKeyName\": \"...\"\n },\n \"defaultPartitionExpirationMs\": \"...\",\n \"defaultTableExpirationMs\": \"...\",\n \"description\": \"...\",\n \"friendlyName\": \"...\",\n \"isCaseInsensitive\": \"...\",\n \"labels\": \"...\",\n \"location\": \"...\",\n \"maxTimeTravelHours\": \"...\",\n \"tags\": {\n \"tagKey\": \"...\",\n \"tagValue\": \"...\"\n }\n }\n },\n \"result\": \"updateResult\"\n }\n }\n]\n```"]]