Method: accounts.dataSources.create
สร้างการกําหนดค่าแหล่งข้อมูลใหม่สําหรับบัญชีที่ระบุ
คำขอ HTTP
POST https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ บัญชีที่จะสร้างแหล่งข้อมูลนี้ รูปแบบ: accounts/{account}
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ 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"],[[["Creates a new data source configuration for a given account using an HTTP POST request."],["Requires specifying the account in the URL path and providing a `DataSource` object in the request body."],["If successful, the response contains the newly created `DataSource` object."],["Needs authorization with the `https://www.googleapis.com/auth/content` scope."]]],["This document details how to create a new data source configuration. The core action is a `POST` HTTP request to `https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources`. The `parent` path parameter, formatted as `accounts/{account}`, specifies the target account. A `DataSource` instance is sent in the request body. Successful execution returns a new `DataSource` instance in the response body. The `https://www.googleapis.com/auth/content` OAuth scope is required for authorization.\n"]]