You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -93,7 +94,7 @@ GET /me/drive/items/{item-id}/versions/{version-id}/content
93
94
94
95
---
95
96
96
-
### Response
97
+
####Response
97
98
98
99
Returns a redirect to where the contents of the version can be downloaded.
99
100
@@ -104,6 +105,28 @@ HTTP/1.1 302 Redirect
104
105
Location: https://onedrive.com/34FF49D6...
105
106
```
106
107
108
+
### Example 2: Download a partial range of bytes from a previous version of a file
109
+
110
+
To download a partial range of bytes from a **driveItemVersion**, your app can use the `Range` header as specified in [RFC 2616](https://www.ietf.org/rfc/rfc2616.txt). You must append the `Range` header when following the redirect and not to the request for `/content`.
The call returns an `HTTP 206 Partial Content` response with the request range of bytes from the file.
120
+
If the range can't be generated, then the `Range` header may be ignored and an `HTTP 200` response would be returned with the full contents of the file.
@@ -99,7 +100,7 @@ GET /me/drive/items/{item-id}/versions/{version-id}/content
99
100
100
101
---
101
102
102
-
### Response
103
+
####Response
103
104
104
105
The call returns a redirect to where the contents of the version can be downloaded.
105
106
@@ -110,6 +111,28 @@ HTTP/1.1 302 Found
110
111
Location: https://onedrive.com/34FF49D6...
111
112
```
112
113
114
+
### Example 2: Download a partial range of bytes from a previous version of a file
115
+
116
+
To download a partial range of bytes from a **driveItemVersion**, your app can use the `Range` header as specified in [RFC 2616](https://www.ietf.org/rfc/rfc2616.txt). You must append the `Range` header when following the redirect and not to the request for `/content`.
The call returns an `HTTP 206 Partial Content` response with the request range of bytes from the file.
126
+
If the range can't be generated, then the `Range` header may be ignored and an `HTTP 200` response would be returned with the full contents of the file.
-[Download a partial range of bytes from a previous version of a file](/graph/api/driveitemversion-get-contents#example-2-download-a-partial-range-of-bytes-from-a-previous-version-of-a-file).
33
34
34
35
### Identity and access | Directory management
35
36
@@ -86,7 +87,8 @@ Use the [follow user](/graph/api/storyline-follow?view=graph-rest-beta&preserve-
86
87
87
88
### Files
88
89
89
-
Added support for the `DELETE /groups/{group-id}/drive/items/{item-id}/retentionLabel`, `DELETE /me/drive/items/{item-id}/retentionLabel`, and `DELETE /users/{user-id}/drive/items/{item-id}/retentionLabel` endpoints to the [driveItem: removeRetentionLabel](/graph/api/driveitem-removeretentionlabel?view=graph-rest-beta&preserve-view=true) API.
90
+
- Added support for the `DELETE /groups/{group-id}/drive/items/{item-id}/retentionLabel`, `DELETE /me/drive/items/{item-id}/retentionLabel`, and `DELETE /users/{user-id}/drive/items/{item-id}/retentionLabel` endpoints to the [driveItem: removeRetentionLabel](/graph/api/driveitem-removeretentionlabel?view=graph-rest-beta&preserve-view=true) API.
91
+
-[Download a partial range of bytes from a previous version of a file](/graph/api/driveitemversion-get-contents#example-2-download-a-partial-range-of-bytes-from-a-previous-version-of-a-file).
0 commit comments