Get File Pre-signed URL
# Description
Obtain a pre-signed URL for file access.
# Request Specification
Method: POST + application/json
Endpoint: https://${cloud-domain}/cgi/crm/v2/file/getPresignedUrl?thirdTraceId=${Random String}
Headers: Refer to Common Parameters
Restrictions: Enterprise must be an Alibaba Cloud or Huawei Cloud file-specialized enterprise.
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | Map | Yes | Data MAP |
| paths | List[String] | Yes | File paths |
| expire | Int | Yes | Expiration time (in hours) |
# Request Example
{
"data": {
"paths": [
"603dabc14ae65400011aec90"
],
"expire": 1
}
}
# Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | Error codes reference |
# Response Example
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}
# Notes
- Do not use the message field in the response for logical judgments, as errorMessage may change;