Method: properties.channelGroups.patch
Aktualisiert eine ChannelGroup.
HTTP-Anfrage
PATCH https://analyticsadmin.googleapis.com/v1alpha/{channelGroup.name=properties/*/channelGroups/*}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
channelGroup.name |
string
Nur Ausgabe. Der Ressourcenname für diese Channel-Gruppenressource. Format: properties/{property}/channelGroups/{channelGroup}
|
Abfrageparameter
Parameter |
updateMask |
string (FieldMask format)
Erforderlich. Die Liste der zu aktualisierenden Felder. Feldnamen müssen in Snake Case geschrieben sein (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 ChannelGroup
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von ChannelGroup
.
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 API endpoint updates a ChannelGroup resource using a PATCH request to the specified URL with the necessary parameters."],["The request requires a `updateMask` query parameter to specify fields to be updated and a request body containing a `ChannelGroup` object with the desired changes."],["Successful responses will contain the updated `ChannelGroup` object in the response body."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."],["The URL path includes the ChannelGroup resource name, and uses gRPC Transcoding syntax."]]],["This document outlines the process for updating a ChannelGroup via a PATCH request to the Google Analytics Admin API. The core actions involve using a specific URL structure that includes the channel group's name. It requires a `FieldMask` parameter specifying which fields to update. The request body and successful response both use the `ChannelGroup` resource. The process requires `analytics.edit` authorization. This process utilizes HTTP requests, path/query parameters, and request/response bodies.\n"]]