业务接口如需上传材料,需先调该接口上传文件,再使用接口返回的url作为文件url放到业务接口请求中。
Request
Body Params multipart/form-data
Request Code Samples
curl --location '/api/v1/system/upload' \
--header 'x-app-id;' \
--header 'x-timestamp: 0' \
--header 'x-nonce;' \
--header 'x-request-id;' \
--header 'x-lang;' \
--form 'file=@""'
Responses
{
"success": true,
"requestId": "req_1234567890",
"timestamp": "2024-09-24T12:00:00Z",
"data": {
"url": "https://cdn.example.com/files/abc123",
"previewUrl": "https://cdn.example.com/previews/abc123",
"fileName": "document.pdf",
"path": "/files/2024/09/24/abc123.pdf"
}
}
Modified at 2026-01-27 07:06:17