Method: properties.dataStreams.measurementProtocolSecrets.patch
Memperbarui secret Measurement Protocol.
Permintaan HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
measurementProtocolSecret.name |
string
Hanya output. Nama resource secret ini. Secret ini dapat berupa turunan dari jenis streaming apa pun. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Wajib. Daftar kolom yang akan diperbarui. Kolom yang dihilangkan tidak akan diperbarui. Ini adalah daftar dipisahkan koma yang berisi nama-nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo" .
|
Isi permintaan
Isi permintaan memuat instance MeasurementProtocolSecret
.
Isi respons
Jika berhasil, isi respons memuat instance MeasurementProtocolSecret
.
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 an existing measurement protocol secret using a PATCH request to a specific endpoint."],["Requires specifying the measurement protocol secret's resource name in the path parameter."],["Allows selective field updates via the `updateMask` query parameter."],["Uses a `MeasurementProtocolSecret` object in the request body to define the updates and returns the same object type in the response if successful."],["Needs authorization with the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This outlines how to update a measurement protocol secret using a `PATCH` request to the specified URL. The URL utilizes gRPC Transcoding syntax and includes a path parameter `measurementProtocolSecret.name`. A `updateMask` query parameter is required to specify which fields to update. The request and response bodies both use the `MeasurementProtocolSecret` resource. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope.\n"]]