Method: accounts.dataSources.patch
อัปเดตการกําหนดค่าแหล่งข้อมูลที่มีอยู่ ระบบจะลบฟิลด์ที่ตั้งค่าไว้ในมาสก์การอัปเดตแต่ไม่ได้ระบุไว้ในแหล่งข้อมูล
คำขอ HTTP
PATCH https://merchantapi.googleapis.com/datasources/v1beta/{dataSource.name=accounts/*/dataSources/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
dataSource.name |
string
ตัวระบุ ชื่อแหล่งข้อมูล รูปแบบ: {datasource.name=accounts/{account}/dataSources/{datasource}}
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
updateMask |
string (FieldMask format)
ต้องระบุ รายการช่องแหล่งข้อมูลที่จะอัปเดต ระบบจะลบช่องที่ระบุไว้ในมาสก์การอัปเดตซึ่งไม่มีค่าที่ระบุไว้ในเนื้อหาออกจากแหล่งข้อมูล ระบบไม่รองรับการให้ค่า "*" พิเศษสำหรับการแทนที่แหล่งข้อมูลทั้งหมด
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ DataSource
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ DataSource
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/content
ดูข้อมูลเพิ่มเติมได้ที่ OAuth 2.0 Overview
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-23 UTC
[null,null,["อัปเดตล่าสุด 2025-01-23 UTC"],[[["This documentation outlines how to update an existing data source configuration using a PATCH request."],["The request should target the specific data source using its unique identifier in the path."],["An `updateMask` query parameter is required to specify the fields to be updated or deleted."],["The request body must contain the updated `DataSource` object, adhering to the provided schema."],["Successful requests will return the updated `DataSource` object in the response."]]],["This describes updating an existing data source configuration via a `PATCH` request to a specific URL: `https://merchantapi.googleapis.com/datasources/v1beta/{dataSource.name=accounts/*/dataSources/*}`. The `dataSource.name` is a required path parameter. The `updateMask` query parameter specifies fields for update or deletion. The request body contains `DataSource` details for the update. A successful response also returns a `DataSource` instance. The operation requires the `https://www.googleapis.com/auth/content` authorization scope.\n"]]