ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Method: accounts.accessBindings.batchUpdate
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
อัปเดตข้อมูลเกี่ยวกับการเชื่อมโยงสิทธิ์เข้าถึงหลายรายการกับบัญชีหรือพร็อพเพอร์ตี้
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ บัญชีหรือพร็อพเพอร์ตี้ที่เป็นเจ้าของการเชื่อมโยงสิทธิ์เข้าถึง ระดับบนสุดของ AccessBinding ทั้งหมดที่ระบุในข้อความ UpdateAccessBindingRequest ต้องตรงกับฟิลด์นี้ รูปแบบ: - บัญชี/{account} - พร็อพเพอร์ตี้/{property}
|
เนื้อหาของคำขอ
เนื้อหาของคำขอมีข้อมูลที่มีโครงสร้างต่อไปนี้
ช่อง |
requests[] |
object (UpdateAccessBindingRequest )
ต้องระบุ คำขอที่ระบุการเชื่อมโยงการเข้าถึงที่จะอัปเดต อัปเดตการเชื่อมโยงสิทธิ์เข้าถึงเป็นกลุ่มได้สูงสุด 1,000 รายการ
|
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ BatchUpdateAccessBindingsResponse
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.manage.users
UpdateAccessBindingRequest
ข้อความขอ AccessBindings.patch RPC
ช่อง |
accessBinding |
object (AccessBinding )
ต้องระบุ การเชื่อมโยงสิทธิ์เข้าถึงที่จะอัปเดต
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThis documentation outlines how to update information about multiple access bindings to a Google Analytics account or property using the batchUpdate method.\u003c/p\u003e\n"],["\u003cp\u003eThe method utilizes an HTTP POST request to a specific endpoint with path parameters indicating the account or property.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an array of \u003ccode\u003eUpdateAccessBindingRequest\u003c/code\u003e objects, each specifying an access binding to update.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful execution results in a \u003ccode\u003eBatchUpdateAccessBindingsResponse\u003c/code\u003e object, and the process requires the \u003ccode\u003eanalytics.manage.users\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],["This document outlines the process for updating multiple access bindings for Google Analytics accounts or properties via a batch operation. It uses a `POST` request to the specified URL, with the `parent` path parameter indicating the target account or property. The request body includes an array of `UpdateAccessBindingRequest` objects, each containing an `accessBinding` object to be updated. The maximum number of bindings to be updated is 1000. Successful requests return a `BatchUpdateAccessBindingsResponse`. Authorization requires the `analytics.manage.users` scope.\n"],null,["# Method: accounts.accessBindings.batchUpdate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [UpdateAccessBindingRequest](#UpdateAccessBindingRequest)\n - [JSON representation](#UpdateAccessBindingRequest.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nUpdates information about multiple access bindings to an account or property.\n\n### HTTP request\n\n`POST https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The account or property that owns the access bindings. The parent of all provided AccessBinding in UpdateAccessBindingRequest messages must match this field. Formats: - accounts/{account} - properties/{property} |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/batchUpdate#UpdateAccessBindingRequest) } ] } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[UpdateAccessBindingRequest](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/batchUpdate#UpdateAccessBindingRequest)`)` Required. The requests specifying the access bindings to update. A maximum of 1000 access bindings can be updated in a batch. |\n\n### Response body\n\nIf successful, the response body contains an instance of [BatchUpdateAccessBindingsResponse](/analytics/devguides/config/admin/v1/rest/v1alpha/BatchUpdateAccessBindingsResponse).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.manage.users`\n\nUpdateAccessBindingRequest\n--------------------------\n\nRequest message for accessBindings.patch RPC.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"accessBinding\": { object (/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings#AccessBinding) } } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accessBinding` | `object (`[AccessBinding](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings#AccessBinding)`)` Required. The access binding to update. |"]]