Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 新用户特惠!注册后赠送 200 算力值!
开发文档
cURL
curl --request POST \ --url https://open251124.ai.jko.cc/volcano/editAsset \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "id": 1, "file_name": "sample-image.jpg" } '
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({id: 1, file_name: 'sample-image.jpg'}) }; fetch('https://open251124.ai.jko.cc/volcano/editAsset', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
import requests url = "https://open251124.ai.jko.cc/volcano/editAsset" payload = { "id": 1, "file_name": "sample-image.jpg" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
{ "status": 100, "message": "操作成功", "data": 1 }
在 Authorization 请求头中传入带 Bearer 头的 API 密钥,例如:Bearer xxxxxx 如何获取 API 密钥?
素材 ID
1
文件名
"sample-image.jpg"
成功
状态码
100
响应消息
"操作成功"
被更新的素材 ID