url: 取得したURL method: PUT header: Content-Type: MIMEタイプ body: ファイルバイナリとし、ファイルアップロードを実行する。image_urls などで使用する。POST /upload/publicupload:public:storeなし10 rps| key | type | 説明 | 制約など |
|---|---|---|---|
| mime_type | string | MIMEタイプ | - |
POST /upload/public
{
"mime_type": "image/jpeg"
}
{
"file_key": "PdoJcUm1wtopvpX5goCSB36GR45FGuRJCrQAsvky.jpg",
"url": "https://...",
"mime_type": "image/jpeg"
}
| key | type | 説明 |
|---|---|---|
| file_key | string | ファイルキー (使用しない) |
| url | string | アップロード先URL |
| mime_type | string | MIMEタイプ |
url: 取得したURL method: PUT header: Content-Type: MIMEタイプ body: ファイルバイナリとし、ファイルアップロードを実行する。POST /upload/privateupload:private:storeなし10 rps| key | type | 説明 | 制約など |
|---|---|---|---|
| mime_type | string | MIMEタイプ | - |
POST /upload/private
{
"mime_type": "image/jpeg"
}
{
"file_key": "PdoJcUm1wtopvpX5goCSB36GR45FGuRJCrQAsvky.jpg",
"url": "https://...",
"mime_type": "image/jpeg"
}
| key | type | 説明 |
|---|---|---|
| file_key | string | ファイルキー |
| url | string | アップロード先URL |
| mime_type | string | MIMEタイプ |