ゴミ箱ファイルの復元
ゴミ箱にあるリソースを復元します。
APIの種類
サービスAPI
Request URL
https://apis.worksmobile.com/r/{API ID}/drive/rl/{resourceLocation}/v2/recycle-files/{resourceKey}/restore
HTTP Method
POST (Content-Type: application/json)
Request
Path Parameters
パラメータ | タイプ | 説明 |
---|---|---|
resource-location | String | 対象リソースのロケーションコード |
resourceKey | String | リソースキー |
Request Body
パラメータ | タイプ | 必須 | 説明 |
---|---|---|---|
toParentKey | String | N | 対象リソースの復元先フォルダのリソースキー(なければ削除した位置に復元) |
overWrite | Boolean | N | 上書きするかどうか ● false: 上書きしない(既定値) ● true: 上書きする |
Request Example
POST /r/worksDev/drive/rl/12345/v2/recycle-files/MTQ1MDMwMDJ8NjQyMTcwMTIxOTkyfEZ8MA/restore HTTP/1.1
Host: apis.worksmobile.com
consumerkey: xxxxx
Authorization: yyyyy
Content-Type: application/json
Content-Length: 0
Response
プロパティ | タイプ | 説明 |
---|---|---|
shareNo | Long | 共有ナンバー |
resourceKey | String | 復元されたリソースキー |
resourceNo | Long | 復元されたリソースナンバー |
Response Example
HTTP/1.1 200 OK
Date: Tue, 10 Mar 2020 02:36:59 GMT
Server: Apache
Strict-Transport-Security: max-age=63072000; includeSubdomains; preload
Referrer-Policy: unsafe-url
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json
{
"shareNo":0,
"resourceKey":"MTQ1MDMwMDJ8NzA3NTYxMDQ3MzA0fEZ8MA",
"resourceNo":707561047304
}