Method: properties.customDimensions.patch
อัปเดต CustomDimension ในพร็อพเพอร์ตี้
คำขอ HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{customDimension.name=properties/*/customDimensions/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
customDimension.name |
string
เอาต์พุตเท่านั้น ชื่อทรัพยากรสําหรับทรัพยากร CustomDimension นี้ รูปแบบ: properties/{property}/customDimensions/{customDimension}
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
updateMask |
string (FieldMask format)
ต้องระบุ รายการช่องที่จะอัปเดต ระบบจะไม่อัปเดตช่องที่ละเว้น หากต้องการแทนที่เอนทิตีทั้งหมด ให้ใช้เส้นทางเดียวที่มีสตริง "*" เพื่อจับคู่กับทุกช่อง ซึ่งเป็นรายการชื่อฟิลด์ที่สมบูรณ์ในตัวเองที่คั่นด้วยคอมมา ตัวอย่าง: "user.displayName,photo"
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ CustomDimension
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ CustomDimension
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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 page details how to update a CustomDimension on a Google Analytics 4 property using the `PATCH` method."],["The request requires specifying the `customDimension.name` as a path parameter and an `updateMask` as a query parameter."],["The request body should contain a `CustomDimension` object with the desired updates."],["A successful response will return the updated `CustomDimension` object."],["To use this API, you need to authorize with the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This document details updating a CustomDimension on a property using a PATCH request. The URL structure, including path parameters, follows gRPC Transcoding syntax, specifying the CustomDimension's name. A required `updateMask` query parameter determines which fields to modify. The request and response bodies both use the `CustomDimension` resource. Authorization requires the `analytics.edit` OAuth scope. The `Try it!` link enables interactive testing.\n"]]