Method: properties.keyEvents.patch
คำขอ HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{keyEvent.name=properties/*/keyEvents/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
keyEvent.name |
string
เอาต์พุตเท่านั้น ชื่อทรัพยากรของเหตุการณ์สําคัญนี้ รูปแบบ: properties/{property}/keyEvents/{keyEvent}
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
updateMask |
string (FieldMask format)
ต้องระบุ รายการช่องที่จะอัปเดต ชื่อช่องต้องอยู่ในรูปแบบ Snake Case (เช่น "field_to_update") ระบบจะไม่อัปเดตช่องที่ละเว้น หากต้องการแทนที่เอนทิตีทั้งหมด ให้ใช้เส้นทางเดียวที่มีสตริง "*" เพื่อจับคู่กับทุกช่อง ซึ่งเป็นรายการชื่อฟิลด์ที่สมบูรณ์ในตัวเองที่คั่นด้วยคอมมา ตัวอย่าง: "user.displayName,photo"
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ KeyEvent
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ KeyEvent
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-14 UTC
[null,null,["อัปเดตล่าสุด 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"]]