ファイルをサンドボックスにアップロード(JSON)
form-dataをサポートし、ファイルを直接アップロードできます。また、json形式をサポートし、urlまたはヘッダー情報付きのbase64(data: xxxx)を通じてファイルをアップロードできます。
保存パスのフォルダを自動的に作成する機能をサポートしています。価格:0.0005 PTC × サンドボックス使用秒数
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/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-22 06:58:35