バージョンリストの閲覧
ファイルのバージョン履歴を照会します。
Request URL
https://apis.worksmobile.com/r/{API ID}/drive/rl/{resourceLocation}/v2/files/{resourceKey}/versions
HTTP Method
GET
Request
Path Parameters
パラメータ | タイプ | 必須 | 説明 |
---|---|---|---|
resourceLocation | Integer | Y | 対象リソースのロケーションコード |
resourceKey | String | Y | リソースキー |
Query Parameters
パラメータ | タイプ | 必須 | 既定値 | 説明 |
---|---|---|---|---|
offset | Integer | N | 0 | 開始インデックス |
limit | Integer | N | 20 | (最大)照会件数 |
includeCurrent | Boolean | N | true | 現在のバージョンを含めるかどうか |
Request Body
なし
Request Example
GET https://apis.worksmobile.com/r/{API ID}/drive/rl/24101/v2/files/MzM4NjEwMDJ8MzgxMTgzNjY4MHxEfDA/versions?includeCurrent=true
Response
プロパティ | タイプ | 必須 | 説明 |
---|---|---|---|
hasMore | Boolean | Y | このリスト以降のバージョン履歴の有無 |
offset | Long | Y | リソースのインデックス開始番号 |
items | List < Version > | Y | ファイルのバージョンリスト |
Response Example
{
"offset": 0,
"hasMore": false,
"items": [
{
"resourceName": "006006010210_99_20160618152809.jpg",
"resourceSize": 87725,
"resourceKey": "MTQ1MDMwMDJ8MjMwNzYyMzg3NzIwfEZ8MA",
"resourceLocation": 24101,
"createDate": 1468571288000,
"updateDate": 1468385882000,
"updateUser": "Taro Yamada",
"fileType": "image",
"current": true
}
]
}