tencent cloud

Smart Media Hosting

Cancel Upload Task

下载
聚焦模式
字号
最后更新时间: 2026-01-07 14:15:07
本文档由 AI 翻译

Description

Cancel the upload task.
Note:
Required permissions: admin, space_admin, upload_file, upload_file_force, begin_upload, or begin_upload_force. For details on permissions, refer to Generate Access Token Interface. (Note: Although this interface is a read interface, since it reads information of the upload task, it still requires permissions related to uploading files.)
If the upload task is a multipart upload task, this request will also abort the multipart upload task in COS.

Request

Request Example

DELETE /api/v1/file/{LibraryId}/{SpaceId}/{ConfirmKey}?upload&access_token={AccessToken}&user_id={UserId}

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtain it after creating a media library in the media hosting console. Please refer to Create Media Library
String
Yes
SpaceId
Space ID. If the media library is in single-tenant mode, this parameter is fixed as hyphen (`-`); if the media library is in multi-tenant mode, you must specify this parameter. Please refer to create tenant space for retrieval.
String
No
ConfirmKey
Confirm parameters, specifying the field value of confirmKey in the response body during file upload.
String
Yes
AccessToken
Access token. To obtain it, see Generate Access Token
String
Yes
UserId
User identity recognition. When the access token corresponds to admin permission and user identity recognition is empty when applying for the access token, it is used to temporarily specify user identity. For details, see Generate Access Token API
String
No

Request Body

This request does not have a request body.

Response

Response code

Cancellation successful, back HTTP 204 No Content.

Response Body

This request does not have a response body.

Error Codes

This request operation has no special error messages. For common error messages, see Error Codes.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈