File ManagementAPI ReferenceComplete Multipart Upload Task

Complete Multipart Upload Task

POST/

Notify the server that all parts have been uploaded. The server merges the parts and returns the final file ID.

Make sure all parts have been successfully uploaded via Upload File Part before calling this endpoint.


Request Parameters

AuthorizationRequiredstring
Bearer <access_token>
X-TC-ActionRequiredstring
API action name, fixed value: `CompleteUploadTask`
X-TC-TimestampRequiredstring
Current UNIX timestamp in seconds
X-TC-LanguageRequiredstring
Response language, required. Supported values: zh-CN / zh-TW / en-US / vi-VN / th-TH / ms-MY / id-ID
multipart/form-data
TaskIdstring
Multipart upload task ID returned by the Create Multipart Upload Task endpoint

Response Parameters

ResponseOptionalobject
Sub-properties
RequestIdOptionalstring
Request ID for tracking and debugging
ErrorOptionalobject
Error information (null on success)
Sub-properties
CodeOptionalstring
Error code. Common codes: `INVALID_REQUEST` / `UNAUTHORIZED` / `FORBIDDEN` / `NOT_FOUND` / `INTERNAL_ERROR`. Endpoints may also return business-specific codes such as `VALIDATION.*`, `ENVELOPE.*`, `SIGNING.*`, `OPENAPI.*`. See individual endpoint documentation for details
MessageOptionalstring
Error description
FileIdOptionalstring
File ID after upload, used to initiate contracts or other operations

Response Example

{
  "Response": {
    "RequestId": "d9892984-589a-461d-a5f5-0d6a9577b63b",
    "FileId": "yD3J7UUckpeq3q66UIGGOhyp7CSx3NCG"
  }
}