Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Method: datasets.undelete
Undeletes a dataset which is within time travel window based on datasetId. If a time is specified, the dataset version deleted at that time is undeleted, else the last live version is undeleted.
HTTP request
POST https://bigquery.googleapis.com/bigquery/v2/projects/{projectId}/datasets/{datasetId}:undelete
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
projectId |
string
Required. Project ID of the dataset to be undeleted
|
datasetId |
string
Required. Dataset ID of dataset being deleted
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Dataset
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/bigquery
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
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-07-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["This webpage outlines how to undelete a dataset within its time travel window using the BigQuery API."],["The process involves sending an HTTP POST request to a specific URL, including the project ID and dataset ID in the path."],["The request body must be empty, and upon successful execution, the response body will return an instance of the `Dataset`."],["Authorization for this action requires either the `https://www.googleapis.com/auth/bigquery` or `https://www.googleapis.com/auth/cloud-platform` OAuth scopes."],["If a time is specified, the dataset version deleted at that time is undeleted, otherwise the last live version will be restored."]]],[]]