← 返回目录
📁 API Reference › BC Assets

删除资产

商务中心管理员用户可以使用本接口删除商务中心下的资产。

目前支持删除的资产类型包括线索和TikTok账号。

v1.2与v1.3版本对比

以下表格概括了 v1.2与v1.3接口的变化。 ``xtable |变化内容{30%}|v1.2{35%}|v1.3{35%}| |---|---|---| | 接口路径 | /v1.2/bc/asset/admin/delete/ | /v1.3/bc/asset/admin/delete/ | | 请求参数类型 |asset_ids: number[] |asset_ids`: string[] |


## 请求

**地址**

https://business-api.tiktok.com/open_api/v1.3/bc/asset/admin/delete/

**方法** POST

**Header**

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

参数

|字段|类型|描述|
|---|---|---|
|bc_id {必填}|string| 商务中心id |
| asset_ids {必填} | string[] | 您要删除的资产ID列表。目前只支持传入一个ID。<ul><li>若 `asset_type`为 `LEAD`,则资产ID为表单库ID。</li><li>若 `asset_type`为 `TT_ACCOUNT`,则资产ID为商务中心中TikTok账户的ID。</li></ul>|
| asset_type {必填} | string | 您要删除的资产类型。枚举值: `LEAD`, `TT_ACCOUNT`(对应`BC_AUTH_TT`身份,详情见[认证身份](https://ads.tiktok.com/marketing_api/docs?id=1738958351620097))。<br><p><span style="color:darkred"><b>注意</b></span>: 当 `asset_type`为 `LEAD`时,您每次只能删除一个线索。线索删除后将回到原广告账号下。|

示例

(code curl http)
curl -H "Access-Token:xxx" -H "Content-Type:application/json" -X POST \
-d '{
    "bc_id": "BC_ID",
    "asset_ids": [
        "ASSET_IDS"
    ],
    "asset_type": "ASSET_TYPE"
}' \
https://business-api.tiktok.com/open_api/v1.3/bc/asset/admin/delete/
(/code)

返回

|字段|类型|描述|
|---|---|---|
|code |number|返回码,详见[附录-返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)  |
|message |string|返回信息,详见[附录-返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)  |
|data |object|返回数据  |
|request_id |string|请求的日志id,唯一标识一个请求  |

示例

(code Success-Response http)
HTTPS/1.1 200 OK
{
    "message": "OK",
    "code": 0,
    "data": {}
}
(/code)

内容来源: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 每日平台更新简报 →