Method: properties.keyEvents.patch
Memperbarui Peristiwa Utama.
Permintaan HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{keyEvent.name=properties/*/keyEvents/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
keyEvent.name |
string
Hanya output. Nama resource peristiwa utama ini. Format: properties/{property}/keyEvents/{keyEvent}
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Wajib. Daftar kolom yang akan diperbarui. Nama kolom harus dalam snake case (misalnya, "field_to_update"). 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 KeyEvent
.
Isi respons
Jika berhasil, isi respons memuat instance KeyEvent
.
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."],[[["This endpoint updates a specific Key Event within a Google Analytics property using an HTTP PATCH request."],["The request requires specifying the Key Event's resource name in the URL path and a `updateMask` query parameter to indicate the fields to be modified."],["The request body should contain the updated Key Event data in JSON format, and the response will contain the updated Key Event if successful."],["Users need to have the `https://www.googleapis.com/auth/analytics.edit` OAuth scope to authorize this request."]]],["This document details updating a Key Event via a PATCH request to a specific URL (`https://analyticsadmin.googleapis.com/v1alpha/{keyEvent.name=properties/*/keyEvents/*}`). The `keyEvent.name` path parameter is required to identify the target. The `updateMask` query parameter specifies fields to be updated, using a field mask format. The request and response bodies utilize the `KeyEvent` resource. An `analytics.edit` OAuth scope is needed for authorization.\n"]]