ファイルの保存
送信されたファイルを保存する
📬 リクエスト
Section titled “📬 リクエスト”POST {resource_api_url}/files
リクエストヘッダ
Section titled “リクエストヘッダ”| キー | 値 |
|---|---|
| Authorization | Bearer {アクセストークン} |
| Content-Type | multipart/form-data |
リクエストボディ
Section titled “リクエストボディ”| キー | 形式 | 必須 | 説明 | 値の例 |
|---|---|---|---|---|
| file | Blob | YES | 投稿するBlob(画像ファイル等) |
✨ 成功レスポンス
Section titled “✨ 成功レスポンス”ステータスコード
Section titled “ステータスコード”201 : Created
レスポンスヘッダ
Section titled “レスポンスヘッダ”| キー | 値 |
|---|---|
| Content-Type | application/json |
レスポンスボディ
Section titled “レスポンスボディ”| フィールド | 形式 | 必須 | 説明 | 値の例 |
|---|---|---|---|---|
| id | 文字列 | YES | 作成したファイルのID | file-00000001 |
レスポンスボディのサンプル
Section titled “レスポンスボディのサンプル”💬 具体的な要求事項
Section titled “💬 具体的な要求事項”- 送信されたファイルを貴社システム内に保存し、ファイルの識別子を返却してください
📚 参考資料
Section titled “📚 参考資料”なし