Method: accounts.dataSources.create
Tạo cấu hình nguồn dữ liệu mới cho tài khoản đã cho.
Yêu cầu HTTP
POST https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Bắt buộc. Tài khoản nơi nguồn dữ liệu này sẽ được tạo. Định dạng accounts/{account}
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của DataSource
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một thực thể DataSource
mới tạo.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/content
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-01-23 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]