Method: accounts.patch
HTTP-Anfrage
PATCH https://analyticsadmin.googleapis.com/v1alpha/{account.name=accounts/*}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
account.name |
string
Nur Ausgabe. Ressourcenname dieses Kontos. Format: „accounts/{account}“ Beispiel: „accounts/100“
|
Abfrageparameter
Parameter |
updateMask |
string (FieldMask format)
Erforderlich. Die Liste der zu aktualisierenden Felder. Feldnamen müssen in Snake Case geschrieben werden, z. B. „field_to_update“. Ausgelassene Felder werden nicht aktualisiert. Wenn Sie die gesamte Entität ersetzen möchten, verwenden Sie einen Pfad mit dem String „*“, um alle Felder abzugleichen. Dies ist eine durch Kommas getrennte Liste vollständig qualifizierter Feldnamen. Beispiel: "user.displayName,photo" .
|
Anfragetext
Der Anfragetext enthält eine Instanz von Account
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Account
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/analytics.edit
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-01-14 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-01-14 (UTC)."],[[["This document explains how to update an existing Google Analytics account using the `PATCH` HTTP request method."],["You will need to provide the `account.name` as a path parameter and `updateMask` as a query parameter specifying the fields to update."],["The request body should contain the updated account details in the format of the [Account](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts#Account) object."],["A successful request will return the updated [Account](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts#Account) object in the response body."],["Authorization is required with the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This outlines the process of updating an account via a PATCH request to the Google Analytics Admin API. The request URL structure is defined using gRPC Transcoding syntax, with `account.name` as a required path parameter. A `updateMask` query parameter specifies which fields to modify. The request and response bodies use the `Account` resource format. Authorization requires the `analytics.edit` OAuth scope. A try it option is available to help test.\n"]]