Method: properties.dataStreams.patch
Memperbarui DataStream di properti.
Permintaan HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{dataStream.name=properties/*/dataStreams/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
dataStream.name |
string
Hanya output. Nama resource Aliran Data ini. Format: properties/{property_id}/dataStreams/{stream_id} Contoh: "properties/1000/dataStreams/2000"
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Wajib. Daftar kolom yang akan diperbarui. Kolom yang dihilangkan tidak akan diperbarui. Untuk mengganti seluruh entitas, gunakan satu jalur dengan string "*" untuk mencocokkan semua kolom. Ini adalah daftar dipisahkan koma yang berisi nama-nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo" .
|
Isi permintaan
Isi permintaan memuat instance DataStream
.
Isi respons
Jika berhasil, isi respons memuat instance DataStream
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/analytics.edit
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-01-14 UTC.
[null,null,["Terakhir diperbarui pada 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"]]