Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
POST /api/v1/file/`{LibraryId}`/`{SpaceId}`/`{ConfirmKey}`?renew&access_token=`{AccessToken}`&user_id=`{UserId}`&traffic_limit=`{TrafficLimit}`
Request parameters. | Description | Type | Required or Not |
LibraryId | Media Library ID, obtained after creating a media library in the media hosting console. See 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. See Create Tenant Space | String | No |
ConfirmKey | Confirm parameters, specified as the confirmKey field value in the response body when starting the file upload. See Multipart Upload | String | Yes |
AccessToken | Access token, see Generate Access Token | String | Yes |
UserId | User identity recognition. When the access token has admin permission and the user identity recognition during token application is empty, it is used to temporarily specify user identity. For details, see Generate Access Token API. | String | No |
TrafficLimit | Single link download speed limit, range 100KB/s-100MB/s, Unit B | Number | No |
{"domain": "examplebucket-1250000000.cos.ap-beijing.myqcloud.com","path": "/xxx","uploadId": "xxx","headers": {"Content-Type": "application/octet-stream","Authorization": "xxx","x-cos-security-token": "xxx","x-cos-traffic-limit": 102400},"confirmKey": "xxx","expiration": "2021-07-24T10:34:32.000Z","availableDomainNum":1}
Response Parameters | Description | Type |
domain | Domain name during actual file upload | String |
path | URL path during actual file upload | String |
uploadId | Request parameters to be specified during actual file upload | String |
headers | Request header to be specified during actual upload | String |
confirmKey | Parameters for file upload confirmation | String |
expiration | Upload information valid period. It will become invalid if exceeds validity period. Need to call the multipart upload job renewal API to obtain new upload parameters. | String |
availableDomainNum | Number of available domains | String |
フィードバック