POST /api/v1/assets/export
POST
/api/v1/assets/export导出资产(打包下载)
请求体
请求数据
Content-Type · application/json
{
"type": "object",
"properties": {
"asset_ids": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
}
}
}请求示例
cURL
curl -X POST 'http://localhost:8080/api/v1/assets/export' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <JWT>'JavaScript
const res = await fetch('http://localhost:8080/api/v1/assets/export', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <JWT>'
},
});
const data = await res.json();Python
import requests
res = requests.post(
'http://localhost:8080/api/v1/assets/export',
headers={'Accept': 'application/json', 'Authorization': 'Bearer <JWT>'}
)
print(res.json())响应
200导出文件流
在线调试
在线调试
凭证仅保存在当前页面内存中自定义请求 Header
