楽天API:削除フォルダの画像を指定して移動

楽天API:削除フォルダの画像を指定して移動

R-Cabinet削除フォルダ内の画像を移動するAPI

誤って削除してしまった画像を閲覧可能なフォルダへ戻すAPI

画像IDと移動先のフォルダIDの指示が必要。元のフォルダに戻すAPIではない事に注意する。

APIメソッド:cabinet.trashbox.file.revert

この機能を利用すると、削除フォルダ内にある画像を指定したフォルダに戻すことができます。

Endpoint / HTTP Method

Endpoint HTTP Method
https://api.rms.rakuten.co.jp/es/1.0/cabinet/trashbox/file/revert POST

Request

HTTP Header
No Key Value Note
1 Authorization ESA Base64(serviceSecret:licenseKey)
HTTP Body
XML:request
No Element Description Type Size(byte) Mandatory Multiplicity Note
1 request.fileRevertRequest 画像情報戻し要求 XML: fileRevertRequest 1

 

XML:fileRevertRequest
No Element Description Type Size(byte) Mandatory Multiplicity Note
1 fileRevertRequest.file 画像情報 XML:file 1

 

XML:file
No Element Description Type Size(byte) Mandatory Multiplicity Note
1 file.fileId 画像ID Integer 10 1
2 file.folderId 戻し先のフォルダ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 interfaceId=cabinet.trashbox.file.revert
2 result.cabinetTrashboxFileRevertResult 削除フォルダ内画像情報戻し結果 XML : cabinetTrashboxFileRevertResult 1

 

XML:cabinetTrashboxFileRevertResult
No Element Description Type Size(byte) Multiplicity Note
1 cabinetTrashboxFileRevertResult.resultCode 結果コード Integer 4 1