Get a revision's contents

get/lists/{listId}/revisions/contents
Internal-Use Only

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.

Request Samples

1

Response Samples

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}

Path Parameters

NameTypeRequiredDescription
listId
string
true

A universally unique identifier for a list.

Examples:
"3659ea38-2618-4474-aeac-0bf6cfd3c322"

Query Parameters

NameTypeRequiredDescription
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

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.Schema
403ForbiddenThe user did not have the necessary permissions.Schema
404Not FoundNo item exists at the requested path.Schema
500Internal Server ErrorThe request could not be fulfilled because of an unexpected server error.Schema