上次更新时间:2026年11月26日
取消数据请求
使用 POST 请求取消数据下载请求
HTTP URL | https://open.tiktokapis.com/v2/user/data/cancel/ |
HTTP 方法 | POST |
Scopes | portability.all.single, portability.all.ongoing, portability.activity.single, portability.activity.ongoing, portability.directmessages.single, portability.directmessages.ongoing, portability.postsandprofile.single, portability.postsandprofile.ongoing, |
Request
Headers
Key | Type | 描述 | 示例 | 必需 |
Authorization | string | 承载对 TikTok 用户授权的令牌,该令牌通过 /v2/oauth/token/ 获取 | Bearer clt.example12345Example12345Example | 是 |
Content-Type | string | 资源的原始媒体类型 | application/json | 是 |
查询参数
Key | Type | 描述 | 示例 | 必需 |
request_id | string | 请求的字段:
| request_id | 是 |
请求示例
curl --location 'https://open.tiktokapis.com/v2/user/data/cancel/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer act.testTemp123testtemp123.e1' \
--data '{
"request_id": 123451234512345
}'响应
成功的取消请求将在错误响应中返回一条“ok”消息。若失败,将返回一条详细的错误消息
Key | Type | 示例 |
error | ErrorStructV2 | 查看下面的响应示例 |
ErrorStructV2
Key | Type | 描述 | 示例 |
code | string | 以字符串形式表示的错误类别 | ok |
message | string | 详细的错误描述 | |
log_id | string | 用于调试的、与每个请求关联的唯一 ID | 1010xyz10101asdf1010101010100a12abc24 |
响应示例
{
"error": {
"code": "ok",
"message": "",
"log_id": "2023242526272829300000000000001111"
}
}