Get a collection of revisions of a code file

get/codeFiles/{codeFileId}/revisions
Internal-Use Only

Returns a collection of code file revisions based on the specified pagination, filtering, and sorting options. The items in the collection, depend on the Accept-Item header.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/decisions/codeFiles",
7 "uri": "/decisions/codeFiles",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.summary application/vnd.sas.decision.code.file"
10 },
11 {
12 "method": "GET",
13 "rel": "self",
14 "href": "/decisions/codeFiles?filter=eq(codeFileId,'cd404a82-af5b-4835-9672-9730470a6be8')&start=3&limit=20",
15 "uri": "/decisions/codeFiles?filter=eq(codeFileId,'cd404a82-af5b-4835-9672-9730470a6be8')&start=3&limit=20",
16 "type": "application/vnd.sas.collection",
17 "itemType": "application/vnd.sas.summary"
18 },
19 {
20 "method": "GET",
21 "rel": "first",
22 "href": "/decisions/codeFiles?filter=eq(codeFileId,'cd404a82-af5b-4835-9672-9730470a6be8')&start=0&limit=20",
23 "uri": "/decisions/codeFiles?filter=eq(codeFileId,'cd404a82-af5b-4835-9672-9730470a6be8')&start=0&limit=20",
24 "type": "application/vnd.sas.collection",
25 "itemType": "application/vnd.sas.summary"
26 },
27 {
28 "method": "POST",
29 "rel": "create",
30 "href": "/decisions/codeFiles",
31 "uri": "/decisions/codeFiles",
32 "type": "application/vnd.sas.decision.code.file",
33 "responseType": "application/vnd.sas.decision.code.file"
34 }
35 ],
36 "name": "codeFiles",
37 "accept": "application/vnd.sas.summary",
38 "start": 3,
39 "count": 5,
40 "items": [
41 {
42 "creationTimeStamp": "2021-05-06T21:36:42.228Z",
43 "modifiedTimeStamp": "2021-05-06T21:36:42.228Z",
44 "createdBy": "sasdemo",
45 "modifiedBy": "sasdemo",
46 "id": "a956c407-8086-414f-984e-0c20d5de71bc",
47 "type": "decisionDS2CodeFile",
48 "name": "add_cf",
49 "links": [
50 {
51 "method": "GET",
52 "rel": "up",
53 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions",
54 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions",
55 "type": "application/vnd.sas.collection",
56 "itemType": "application/vnd.sas.summary"
57 },
58 {
59 "method": "GET",
60 "rel": "self",
61 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/a956c407-8086-414f-984e-0c20d5de71bc",
62 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/a956c407-8086-414f-984e-0c20d5de71bc",
63 "type": "application/vnd.sas.decision.code.file"
64 },
65 {
66 "method": "PUT",
67 "rel": "update",
68 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/a956c407-8086-414f-984e-0c20d5de71bc",
69 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/a956c407-8086-414f-984e-0c20d5de71bc",
70 "type": "application/vnd.sas.decision.code.file"
71 },
72 {
73 "method": "GET",
74 "rel": "alternate",
75 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/a956c407-8086-414f-984e-0c20d5de71bc",
76 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/a956c407-8086-414f-984e-0c20d5de71bc",
77 "type": "application/vnd.sas.summary"
78 },
79 {
80 "method": "GET",
81 "rel": "content",
82 "href": "/files/files/cccfa23a-6943-42eb-8743-aa5d3ff0db9b/content",
83 "uri": "/files/files/cccfa23a-6943-42eb-8743-aa5d3ff0db9b/content"
84 },
85 {
86 "method": "GET",
87 "rel": "decisionStepCode",
88 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/a956c407-8086-414f-984e-0c20d5de71bc",
89 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/a956c407-8086-414f-984e-0c20d5de71bc",
90 "type": "application/vnd.sas.decision.step.code"
91 },
92 {
93 "method": "DELETE",
94 "rel": "delete",
95 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/a956c407-8086-414f-984e-0c20d5de71bc",
96 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/a956c407-8086-414f-984e-0c20d5de71bc"
97 }
98 ],
99 "version": 2
100 },
101 {
102 "creationTimeStamp": "2021-05-06T21:37:00.131Z",
103 "modifiedTimeStamp": "2021-05-06T21:37:00.131Z",
104 "createdBy": "sasdemo",
105 "modifiedBy": "sasdemo",
106 "id": "66c99a48-0903-44ea-948f-7c711fde4291",
107 "type": "decisionDS2CodeFile",
108 "name": "add_cf",
109 "links": [
110 {
111 "method": "GET",
112 "rel": "up",
113 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions",
114 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions",
115 "type": "application/vnd.sas.collection",
116 "itemType": "application/vnd.sas.summary"
117 },
118 {
119 "method": "GET",
120 "rel": "self",
121 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/66c99a48-0903-44ea-948f-7c711fde4291",
122 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/66c99a48-0903-44ea-948f-7c711fde4291",
123 "type": "application/vnd.sas.decision.code.file"
124 },
125 {
126 "method": "PUT",
127 "rel": "update",
128 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/66c99a48-0903-44ea-948f-7c711fde4291",
129 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/66c99a48-0903-44ea-948f-7c711fde4291",
130 "type": "application/vnd.sas.decision.code.file"
131 },
132 {
133 "method": "GET",
134 "rel": "alternate",
135 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/66c99a48-0903-44ea-948f-7c711fde4291",
136 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/66c99a48-0903-44ea-948f-7c711fde4291",
137 "type": "application/vnd.sas.summary"
138 },
139 {
140 "method": "GET",
141 "rel": "content",
142 "href": "/files/files/7916329a-4e35-4d3c-b865-de42eddc3bb1/content",
143 "uri": "/files/files/7916329a-4e35-4d3c-b865-de42eddc3bb1/content"
144 },
145 {
146 "method": "GET",
147 "rel": "decisionStepCode",
148 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/66c99a48-0903-44ea-948f-7c711fde4291",
149 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/66c99a48-0903-44ea-948f-7c711fde4291",
150 "type": "application/vnd.sas.decision.step.code"
151 },
152 {
153 "method": "DELETE",
154 "rel": "delete",
155 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/66c99a48-0903-44ea-948f-7c711fde4291",
156 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/66c99a48-0903-44ea-948f-7c711fde4291"
157 }
158 ],
159 "version": 2
160 }
161 ],
162 "limit": 20,
163 "version": 2
164}

Path Parameters

NameTypeRequiredDescription
codeFileId
string
true

The unique identifier for the code file.

Examples:
"981ac81f-ad95-46ae-a101-6846683364c5"

Query Parameters

NameTypeRequiredDescription
filter
string<filter-criteria>
false

The criteria for filtering the code files. See Filtering in REST APIs.

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

The maximum number of code files to return.

Default:
20
Examples:
500
sortBy
string<sort-criteria>
false

The criteria for sorting the code files. See Sorting in REST APIs.

Examples:
"modifiedTimeStamp:descending"
start
integer<int64>
false

The index of the first code file to return.

Default:
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.code.file+jsonapplication/vnd.sas.summary+jsonapplication/vnd.sas.dcm.summary+json
Default:
application/vnd.sas.summary+json
Examples:
"application/vnd.sas.decision.code.file+json"

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema