Method: accounts.dataSources.patch
Updates the existing data source configuration. The fields that are set in the update mask but not provided in the resource will be deleted.
HTTP request
PATCH https://merchantapi.googleapis.com/datasources/v1beta/{dataSource.name=accounts/*/dataSources/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
dataSource.name |
string
Identifier. The name of the data source. Format: {datasource.name=accounts/{account}/dataSources/{datasource}}
|
Query parameters
Parameters |
updateMask |
string (FieldMask format)
Required. The list of data source fields to be updated. Fields specified in the update mask without a value specified in the body will be deleted from the data source. Providing special "*" value for full data source replacement is not supported.
|
Request body
The request body contains an instance of DataSource
.
Response body
If successful, the response body contains an instance of DataSource
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 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-02-25 UTC.
[null,null,["Last updated 2025-02-25 UTC."],[[["This documentation outlines how to update an existing data source configuration using a PATCH request."],["The request should target the specific data source using its unique identifier in the path."],["An `updateMask` query parameter is required to specify the fields to be updated or deleted."],["The request body must contain the updated `DataSource` object, adhering to the provided schema."],["Successful requests will return the updated `DataSource` object in the response."]]],["This describes updating an existing data source configuration via a `PATCH` request to a specific URL: `https://merchantapi.googleapis.com/datasources/v1beta/{dataSource.name=accounts/*/dataSources/*}`. The `dataSource.name` is a required path parameter. The `updateMask` query parameter specifies fields for update or deletion. The request body contains `DataSource` details for the update. A successful response also returns a `DataSource` instance. The operation requires the `https://www.googleapis.com/auth/content` authorization scope.\n"]]