Method: accounts.dataSources.create
پیکربندی منبع داده جدید را برای حساب داده شده ایجاد می کند.
درخواست HTTP
POST https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
parent | string مورد نیاز. حسابی که این منبع داده در آن ایجاد خواهد شد. قالب: accounts/{account} |
درخواست بدن
بدنه درخواست شامل یک نمونه از DataSource
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی یک نمونه جدید از DataSource
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/content
برای اطلاعات بیشتر، بهOAuth 2.0 Overview .
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-23 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-23 بهوقت ساعت هماهنگ جهانی."],[[["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"]]