Get a revision's contents
get/lists/{listId}/revisions/contents
Returns a collection of the contents of one or more revisions of a list.
If the application/vnd.sas.listdata.dataset.comparison+json
media type is used, more than one revision can be specified by using 'revision' as the query parameter. The response is a comparison of these revisions' contents.
1{2 "name": "listContents",3 "version": 2,4 "accept": "application/json",5 "start": 0,6 "limit": 10,7 "count": 2,8 "items": [9 {10 "x": "1",11 "y": "1"12 },13 {14 "x": "2",15 "y": "2"16 }17 ],18 "links": [19 {20 "href": "...",21 "method": "...",22 "rel": "...",23 "uri": "..."24 }25 ]26}
Name | Type | Required | Description |
---|---|---|---|
listId | string | true | A universally unique identifier for a list. Examples: "3659ea38-2618-4474-aeac-0bf6cfd3c322" |
Name | Type | Required | Description |
---|---|---|---|
revision | number | false | The number of the revision of a list. Examples: 2 |
diffs | boolean | true | An indicator for whether to highlight only the differences. Examples: true |
limit | integer | false | The maximum number of items to return. The default value is '20'. Examples: 100 |
start | integer | false | A zero-based offset of the first item to return. The default value is '0'. Examples: 0 |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema | |
403 | Forbidden | The user did not have the necessary permissions. | Schema | |
404 | Not Found | No item exists at the requested path. | Schema | |
500 | Internal Server Error | The request could not be fulfilled because of an unexpected server error. | Schema |