支持form-data直接上传文件&&支持json格式通过url/带头部信息的base64(data: xxxx)上传文件
支持自动创建保存路径文件夹
Request
Body Params application/jsonRequired
{
"sandbox_id": "string",
"file": "string",
"path": "string",
"auto_unzip": true
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/v1/302/claude-code/sandbox/file/upload' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"sandbox_id": "string",
"file": "string",
"path": "string",
"auto_unzip": true
}'
Responses
application/json Modified at 2025-12-19 11:49:03