Create feed
POST {{baseUrl}}/catalogs/feeds?ad_account_id=4
Create a new feed owned by the operation user_account
.
- By default, the operation user_account
is the token user_account.
Please, be aware that default_country
and default_locale
are not required in the spec for forward compatibility
but for now the API will not accept requests without those fields.
Optional: Business Access: Specify an adaccountid
(obtained via List ad accounts) to use the owner of that adaccount as the "operation useraccount. In order to do this, the token user_account must have one of the following https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts">Business Access roles on the ad_account: Owner, Admin, Catalogs Manager.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
ad_account_id | number | Unique identifier of an ad account. |
Request Body
{"format"=>"TSV", "location"=>"https://", "name"=>"<string>", "catalog_type"=>"HOTEL", "default_country"=>"AS", "default_locale"=>"vi-VN", "default_currency"=>"VUV", "credentials"=>{"username"=>"<string>", "password"=>"<string>"}, "preferred_processing_schedule"=>{"time"=>"01:48", "timezone"=>"Asia/Dili"}, "default_availability"=>"OUT_OF_STOCK"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"credentials":{"username":"\u003cstring\u003e","password":"\u003cstring\u003e"},"default_availability":"PREORDER","default_country":"LY","default_currency":"TWD","default_locale":"\u003cstring\u003e","format":"XML","location":"\u003cstring\u003e","name":"\u003cstring\u003e","preferred_processing_schedule":{"time":"23:25","timezone":"Antarctica/Vostok"},"status":"INACTIVE","catalog_type":"RETAIL","created_at":"\u003cdateTime\u003e","id":"\u003cstring\u003e","updated_at":"\u003cdateTime\u003e"}