Get all revisions for a decision

get/flows/{decisionId}/revisions
Internal-Use Only

Retrieves a list of all revisions that exist for a decision.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions",
7 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.decision"
10 },
11 {
12 "method": "GET",
13 "rel": "self",
14 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions?filter=eq(decisionId,'e2cf4209-2661-4ef1-b77f-10b91a6420e3')&sortBy=majorNumber:ascending,minorNumber:ascending&start=2&limit=1",
15 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions?filter=eq(decisionId,'e2cf4209-2661-4ef1-b77f-10b91a6420e3')&sortBy=majorNumber:ascending,minorNumber:ascending&start=2&limit=1",
16 "type": "application/vnd.sas.collection",
17 "itemType": "application/vnd.sas.decision"
18 },
19 {
20 "method": "GET",
21 "rel": "first",
22 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions?filter=eq(decisionId,'e2cf4209-2661-4ef1-b77f-10b91a6420e3')&sortBy=majorNumber:ascending,minorNumber:ascending&start=0&limit=1",
23 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions?filter=eq(decisionId,'e2cf4209-2661-4ef1-b77f-10b91a6420e3')&sortBy=majorNumber:ascending,minorNumber:ascending&start=0&limit=1",
24 "type": "application/vnd.sas.collection",
25 "itemType": "application/vnd.sas.decision"
26 },
27 {
28 "method": "GET",
29 "rel": "prev",
30 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions?filter=eq(decisionId,'e2cf4209-2661-4ef1-b77f-10b91a6420e3')&sortBy=majorNumber:ascending,minorNumber:ascending&start=1&limit=1",
31 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions?filter=eq(decisionId,'e2cf4209-2661-4ef1-b77f-10b91a6420e3')&sortBy=majorNumber:ascending,minorNumber:ascending&start=1&limit=1",
32 "type": "application/vnd.sas.collection",
33 "itemType": "application/vnd.sas.decision"
34 },
35 {
36 "method": "GET",
37 "rel": "next",
38 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions?filter=eq(decisionId,'e2cf4209-2661-4ef1-b77f-10b91a6420e3')&sortBy=majorNumber:ascending,minorNumber:ascending&start=3&limit=1",
39 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions?filter=eq(decisionId,'e2cf4209-2661-4ef1-b77f-10b91a6420e3')&sortBy=majorNumber:ascending,minorNumber:ascending&start=3&limit=1",
40 "type": "application/vnd.sas.collection",
41 "itemType": "application/vnd.sas.decision"
42 },
43 {
44 "method": "POST",
45 "rel": "createRevision",
46 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions",
47 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions",
48 "type": "application/vnd.sas.decision",
49 "responseType": "application/vnd.sas.decision"
50 }
51 ],
52 "name": "revisions",
53 "accept": "application/vnd.sas.summary",
54 "start": 2,
55 "count": 6,
56 "items": [
57 {
58 "creationTimeStamp": "2021-05-07T16:06:05.631Z",
59 "modifiedTimeStamp": "2021-05-07T16:06:22.755Z",
60 "createdBy": "sasdemo",
61 "modifiedBy": "sasdemo",
62 "id": "77cfc1c3-f050-4169-939a-941e7c664215",
63 "name": "add_dec",
64 "type": "decision",
65 "links": [
66 {
67 "method": "GET",
68 "rel": "self",
69 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215",
70 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215",
71 "type": "application/vnd.sas.decision"
72 },
73 {
74 "method": "DELETE",
75 "rel": "delete",
76 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215",
77 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215"
78 },
79 {
80 "method": "GET",
81 "rel": "code",
82 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215/code",
83 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215/code",
84 "type": "text/vnd.sas.source.ds2"
85 },
86 {
87 "method": "POST",
88 "rel": "mappedCode",
89 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215/mappedCode",
90 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215/mappedCode",
91 "type": "application/vnd.sas.score.code.generation.request",
92 "responseType": "application/vnd.sas.score.mapped.code"
93 },
94 {
95 "method": "GET",
96 "rel": "decision",
97 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3",
98 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3",
99 "type": "application/vnd.sas.decision"
100 }
101 ],
102 "version": 1
103 }
104 ],
105 "limit": 1,
106 "version": 2
107}

Path Parameters

NameTypeRequiredDescription
decisionId
string
true

The identifier for a decision.

Examples:
"094078e7-278a-4719-a704-6e5e65af29ee"

Query Parameters

NameTypeRequiredDescription
filter
string<filter-criteria>
false

The criteria for filtering the decision flow revisions. See Filtering in REST APIs.

Examples:
"gt(modifiedTimeStamp, '2021-05-03T15:38:45.654Z')"
limit
integer
false

The maximum number of items to return in this page of results. The actual number of returned items might be less if the collection has been exhausted. The default is 10.

Examples:
500
sortBy
string<sort-criteria>
false

The criteria for sorting the decision flow revisions. See Sorting in REST APIs.

Examples:
"modifiedTimeStamp:descending"
start
integer
false

The starting index of the first item in a page. The index is 0-based. The default is 0.

Examples:
100

Header Parameters

NameTypeRequiredDescription
Accept-Item
string<media-type>
false

Used for selecting the desired item representation.

Allowed values:
application/vnd.sas.decision+jsonapplication/vnd.sas.summary+jsonapplication/vnd.sas.dcm.summary+json
Default:
application/vnd.sas.summary+json
Examples:
"application/vnd.sas.decision+json"

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
404Not FoundNo decision exists at the requested path.HeadersSchema