Method: projects.datasets.patch
Stay organized with collections
Save and categorize content based on your preferences.
Updates the metadata for the dataset.
HTTP request
PATCH https://mapsplatformdatasets.googleapis.com/v1/{dataset.name=projects/*/datasets/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
dataset.name |
string
Resource name. Format: projects/{project}/datasets/{datasetId}
|
Query parameters
Parameters |
updateMask |
string (FieldMask format)
The list of fields to be updated. The value "*" is used for full replacement (default).
|
Request body
The request body contains an instance of Dataset
.
Response body
If successful, the response body contains an instance of Dataset
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
IAM Permissions
Requires the following IAM permission on the name
resource:
mapsplatformdatasets.datasets.update
For more information, see the IAM documentation.
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-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003eUpdates the metadata for an existing dataset using a PATCH request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the dataset's resource name in the URL path.\u003c/p\u003e\n"],["\u003cp\u003eYou can optionally use the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter to specify which fields to update.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the updated Dataset object.\u003c/p\u003e\n"],["\u003cp\u003eProper authorization with OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and IAM permission \u003ccode\u003emapsplatformdatasets.datasets.update\u003c/code\u003e is necessary.\u003c/p\u003e\n"]]],[],null,["# Method: projects.datasets.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\nUpdates the metadata for the dataset.\n\n### HTTP request\n\n`PATCH https://mapsplatformdatasets.googleapis.com/v1/{dataset.name=projects/*/datasets/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------|-------------------------------------------------------------------------|\n| `dataset.name` | `string` Resource name. Format: projects/{project}/datasets/{datasetId} |\n\n### Query parameters\n\n| Parameters ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask)` format)` The list of fields to be updated. The value \"\\*\" is used for full replacement (default). |\n\n### Request body\n\nThe request body contains an instance of [Dataset](/maps/documentation/datasets/reference/rest/v1/projects.datasets#Dataset).\n\n### Response body\n\nIf successful, the response body contains an instance of [Dataset](/maps/documentation/datasets/reference/rest/v1/projects.datasets#Dataset).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `mapsplatformdatasets.datasets.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]