← 返回目录
📁 API Reference › Catalog Video Templates

(已废弃)上传视频模板

您可以使用本接口将视频模板上传到商务中心,并将视频模板与一组商品库关联。

欲了解如何设计自定义视频模板,请参见指南。此外,在自定义视频模板中,图层和文本层需要以TikTok支持的格式命名,详情参见图层命名指南。

v1.2与v1.3版本对比

以下表格概括了 v1.2与v1.3接口的变化。 ``xtable |变化内容{30%}|v1.2{35%}|v1.3{35%}| |---|---|---| |接口路径| /v1.2/catalog/template/upload/| /v1.3/catalog/template/upload/| |请求参数类型|bc_id: number<br>catalog_ids: number[]|bc_id: string<br>catalog_ids`: string[]|


## 请求

**地址** <https://business-api.tiktok.com/open_api/v1.3/catalog/template/upload/>

**方法** POST

**Header**

```xtable
|字段|类型|描述|
|---|---|---|
|Access-Token {必填}|string|授权访问令牌。可以通过[获取访问令牌](https://ads.tiktok.com/marketing_api/docs?id=1738373164380162)接口获取。|
|Content-Type {必填}|string|请求信息类型。<br>允许格式:`application/json`。|

参数

|字段|类型|描述|
|---|---|---|
|bc_id {必填}|string| 商务中心ID。 |
|catalog_ids {必填}|string[]|您想要将模板关联到的商品库ID列表。|
|file {必填}| file| ZIP格式的视频模板文件。|

示例

(code curl http)
curl --location --request POST 'https://business-api.tiktok.com/open_api/v1.3/catalog/template/upload/' \
--header 'access-token: abcd' \
--form 'bc_id="abcd"' \
--form 'catalog_ids="[1234567890]"' \
--form 'file=@"/Users/admin/Downloads/Example.zip"'
(/code)

返回

|字段|类型|描述|
|---|---|---|
|code |number|返回码,详见[附录-返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)。|
|message |string|返回信息,详见[附录-返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)。|
|template_id|string|上传的模板的ID。|
|catalog_upload_success|number[]|本模板已成功关联的商品库ID列表。|
|request_id |string|请求的日志id,唯一标识一个请求。|

内容来源:TikTok API for Business 官方文档 · 本地归档

在接这个接口时卡住了?
Stuck wiring this API into production? We build ad-delivery tooling on these platforms — campaign automation, reporting pipelines, error-handling and migration between API versions.
联系我们 · Talk to us 每日平台更新简报 →