R-Cabinet内の画像を削除フォルダへ移動するAPI
不要となった画像をR-Cabinetの削除フォルダに移動するAPI。削除ではない事に注意する。
削除フォルダへの移動なので、間違えて処理してしまった場合は元に戻すことも可能。特に2つ以上の商品ページで共通して利用していた画像などは商品をkeyに画像削除指示を出すと出品中の商品から画像が無くなることもある。そのため、復活できるメリットは大きいが、R-Cabinetの容量解放とならない事に注意が必要。
APIメソッド:cabinet.file.delete
この機能を利用すると、画像IDを指定して画像を削除フォルダに移動することができます。
Endpoint / HTTP Method
Endpoint |
HTTP Method |
https://api.rms.rakuten.co.jp/es/1.0/cabinet/file/delete |
POST |
Request
HTTP Header
No |
Key |
Value |
Note |
1 |
Authorization |
ESA Base64(serviceSecret:licenseKey) |
|
HTTP Body
XML:result
No |
Element |
Description |
Type |
Size(byte) |
Mandatory |
Multiplicity |
Note |
1 |
request.fileDeleteRequest |
画像情報削除要求 |
XML:fileDeleteRequest |
– |
〇 |
1 |
|
XML:fileDeleteRequest
No |
Element |
Description |
Type |
Size(byte) |
Mandatory |
Multiplicity |
Note |
1 |
fileDeleteRequest.file |
画像情報 |
XML:file |
– |
〇 |
1 |
|
XML:file
No |
Element |
Description |
Type |
Size(byte) |
Mandatory |
Multiplicity |
Note |
1 |
file.fileId |
画像ID |
Integer |
10 |
〇 |
1 |
|
Response
HTTP Header
No |
Key |
Value |
1 |
Content-Type |
text/xml |
HTTP Body
XML:result
No |
Element |
Description |
Type |
Size(byte) |
Multiplicity |
Note |
1 |
result.status |
ステータス |
XML : status |
– |
1 |
nterfaceId=cabinet.file.delete |
2 |
result.cabinetFileDeleteResult |
画像情報削除結果 |
XML : cabinetFileDeleteResult |
– |
1 |
|
XML:cabinetFileDeleteResult
No |
Element |
Description |
Type |
Size(byte) |
Multiplicity |
Note |
1 |
cabinetFileDeleteResult.resultCode |
結果コード |
Integer |
4 |
1 |
|
関連
コメントを残す