tencent cloud

Smart Media Hosting

Cancel Upload Task

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-07 14:15:07

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.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백