参数
| 位置 | 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| path | resourceId | integer | 是 | 资源 ID |
| form-data | file | file | 是 | PNG、JPG/JPEG 或 GIF;最大 5 MB |
curl -X POST 'https://resource-api.xyeidc.com/api/resources/42/logo/upload' \
-H 'Api-Key: YOUR_API_KEY' \
-H 'Api-Secret: YOUR_API_SECRET' \
-F 'file=@./logo.png'
响应示例
{
"code": 200,
"msg": "Success!",
"data": null
}
上传成功后重新获取资源详情,通过 logoImgUuid 拼接 /client/members/pics/{logoImgUuid}。新 Logo 会替换旧文件。
