图谱 API 版

Product Catalog Batch

读取

你无法在此端点执行该操作。

创建

你可以通过下列路径向 batch 连线发出 POST 请求:
发布到这个连线会创建 a ProductItem

参数

参数描述
allow_upsert
boolean
默认值:true

Parameters specifying whether non existing items that are being updated should be inserted or should throw the error

requests
list<JSON object>

Array of JSON objects containing batch requests. Each batch request consists of retailer_id, method and data fields.

  `retailer_id` - retailer's ID for a
  product.


  `method` - an operation of a batch request, either `CREATE`, `UPDATE`
  or `DELETE`.


  `data` - JSON object containing fields and values for a product. See [Catalog Batch API](https://developers.facebook.com/docs/marketing-api/catalog-batch) to learn more the list of fields and values for the data object. 

必填

返回类型

这个端点支持先写后读,并会读取接收你的 POST 请求的节点。
Struct {
handles: List [
string
],
validation_status: List [
Struct {
errors: List [
Struct {
message: string,
}
],
retailer_id: string,
warnings: List [
Struct {
message: string,
}
],
}
],
}

错误代码

错误描述
80014There have been too many calls for the batch uploads to this catalog account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting#catalog.
100Invalid parameter
190Invalid OAuth 2.0 Access Token
200Permissions error

更新

你无法在此端点执行该操作。

删除

你无法在此端点执行该操作。