Method: properties.dataStreams.patch
อัปเดต DataStream ในพร็อพเพอร์ตี้
คำขอ HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{dataStream.name=properties/*/dataStreams/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
dataStream.name |
string
เอาต์พุตเท่านั้น ชื่อทรัพยากรของสตรีมข้อมูลนี้ รูปแบบ: properties/{property_id}/dataStreams/{stream_id} ตัวอย่างเช่น "properties/1000/dataStreams/2000"
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
updateMask |
string (FieldMask format)
ต้องระบุ รายการช่องที่จะอัปเดต ระบบจะไม่อัปเดตช่องที่ละเว้น หากต้องการแทนที่เอนทิตีทั้งหมด ให้ใช้เส้นทางเดียวที่มีสตริง "*" เพื่อจับคู่กับทุกช่อง ซึ่งเป็นรายการชื่อฟิลด์ที่สมบูรณ์ในตัวเองที่คั่นด้วยคอมมา ตัวอย่าง: "user.displayName,photo"
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ DataStream
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ DataStream
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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"],[[["Updates a DataStream associated with a Google Analytics 4 property."],["The request requires specifying the DataStream name as a path parameter and an update mask as a query parameter."],["Request and response bodies utilize the `DataStream` object structure for data exchange."],["Authorization necessitates the `analytics.edit` scope for successful execution."]]],["This outlines updating a DataStream using a PATCH request to a specified URL structure: `https://analyticsadmin.googleapis.com/v1beta/{dataStream.name=properties/*/dataStreams/*}`. The `dataStream.name` parameter in the path is required. Updates are defined in the `updateMask` query parameter using FieldMask format. The request and response bodies utilize the DataStream format. It also requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]