Method: properties.dataStreams.patch
Aktualizuje strumień danych w usłudze.
Żądanie HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{dataStream.name=properties/*/dataStreams/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
dataStream.name |
string
Tylko dane wyjściowe. Nazwa zasobu tego strumienia danych. Format: properties/{property_id}/dataStreams/{stream_id} Przykład: „properties/1000/dataStreams/2000”
|
Parametry zapytania
Parametry |
updateMask |
string (FieldMask format)
Wymagane. Lista pól do zaktualizowania. Pominięte pola nie zostaną zaktualizowane. Aby zastąpić cały element, użyj jednej ścieżki z ciągiem znaków „*”, aby dopasować wszystkie pola. Jest to lista pełnych nazw pól rozdzielona przecinkami. Przykład: "user.displayName,photo" .
|
Treść żądania
Treść żądania zawiera wystąpienie elementu DataStream
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu DataStream
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/analytics.edit
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-01-14 UTC.
[null,null,["Ostatnia aktualizacja: 2025-01-14 UTC."],[[["Updates a DataStream associated with a Google Analytics 4 property using a PATCH request to the specified endpoint."],["The request must include a `dataStream.name` path parameter to identify the DataStream and an `updateMask` query parameter indicating the fields to update."],["The request body should contain a DataStream object with the updated values, and upon success, the response body will return the updated DataStream object."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This outlines how to update a DataStream via a PATCH request to the specified URL, using gRPC Transcoding syntax. The `dataStream.name` path parameter identifies the target stream. The `updateMask` query parameter dictates which fields to modify. The request and response bodies both utilize the `DataStream` resource. Authorization requires the `analytics.edit` OAuth scope. The \"Try it!\" option allows users to directly interact with the service.\n"]]