Method: projects.datasets.patch

  • Updates the metadata for an existing dataset using a PATCH request.

  • The request requires specifying the dataset's resource name in the URL path.

  • You can optionally use theupdateMask query parameter to specify which fields to update.

  • The request body should contain the updated Dataset object.

  • Proper authorization with OAuth scopehttps://www.googleapis.com/auth/cloud-platform and IAM permissionmapsplatformdatasets.datasets.update is necessary.

Updates the metadata for the dataset.

HTTP request

PATCH https://mapsplatformdatasets.googleapis.com/v1/{dataset.name=projects/*/datasets/*}

The URL usesgRPC 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 ofDataset.

Response body

If successful, the response body contains an instance ofDataset.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

IAM Permissions

Requires the followingIAM permission on thename resource:

  • mapsplatformdatasets.datasets.update

For more information, see theIAM documentation.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-27 UTC.