Get revisions across treatment definitions

post/definitionRevisions
Internal-Use Only

Returns a list of the treatment definition revisions based on the list of resource IDs.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "POST",
5 "rel": "collection",
6 "href": "/treatmentDefinitions/definitionRevisions",
7 "uri": "/treatmentDefinitions/definitionRevisions",
8 "type": "application/vnd.sas.collection"
9 },
10 {
11 "method": "POST",
12 "rel": "self",
13 "href": "/treatmentDefinitions/definitionRevisions?start=0&limit=10",
14 "uri": "/treatmentDefinitions/definitionRevisions?start=0&limit=10",
15 "type": "application/vnd.sas.collection",
16 "name": "treatmentDefinitionRevisions"
17 }
18 ],
19 "accept": "application/vnd.sas.treatment.definition",
20 "start": 0,
21 "count": 2,
22 "items": [
23 {
24 "creationTimeStamp": "2021-09-15T18:17:53.758Z",
25 "modifiedTimeStamp": "2021-09-15T18:17:53.758Z",
26 "createdBy": "sasdemo",
27 "modifiedBy": "sasdemo",
28 "id": "b9be29ad-557a-4c20-a70e-0cdb49d998e4",
29 "name": "Treatment_1",
30 "majorRevision": 1,
31 "minorRevision": 0,
32 "checkout": false,
33 "locked": false,
34 "attributes": [
35 {
36 "id": "3064402c-b83f-4c43-baa7-e68c28028e2a",
37 "name": "foo",
38 "valueConstraints": {
39 "dataType": "string",
40 "required": false,
41 "readOnly": false,
42 "multiple": false,
43 "range": false
44 }
45 }
46 ],
47 "links": [
48 {
49 "method": "GET",
50 "rel": "up",
51 "href": "/treatmentDefinitions/definitions/8c21e6e2-a2e7-4296-a11a-ad19d2c40852/revisions",
52 "uri": "/treatmentDefinitions/definitions/8c21e6e2-a2e7-4296-a11a-ad19d2c40852/revisions",
53 "type": "application/vnd.sas.collection"
54 },
55 {
56 "method": "GET",
57 "rel": "self",
58 "href": "/treatmentDefinitions/definitions/8c21e6e2-a2e7-4296-a11a-ad19d2c40852/revisions/b9be29ad-557a-4c20-a70e-0cdb49d998e4",
59 "uri": "/treatmentDefinitions/definitions/8c21e6e2-a2e7-4296-a11a-ad19d2c40852/revisions/b9be29ad-557a-4c20-a70e-0cdb49d998e4",
60 "type": "application/vnd.sas.treatment.definition"
61 },
62 {
63 "method": "GET",
64 "rel": "alternate",
65 "href": "/treatmentDefinitions/definitions/8c21e6e2-a2e7-4296-a11a-ad19d2c40852/revisions/b9be29ad-557a-4c20-a70e-0cdb49d998e4",
66 "uri": "/treatmentDefinitions/definitions/8c21e6e2-a2e7-4296-a11a-ad19d2c40852/revisions/b9be29ad-557a-4c20-a70e-0cdb49d998e4",
67 "type": "application/vnd.sas.summary"
68 },
69 {
70 "method": "GET",
71 "rel": "checkOuts",
72 "href": "/treatmentDefinitions/definitions/8c21e6e2-a2e7-4296-a11a-ad19d2c40852/revisions/b9be29ad-557a-4c20-a70e-0cdb49d998e4/checkOuts",
73 "uri": "/treatmentDefinitions/definitions/8c21e6e2-a2e7-4296-a11a-ad19d2c40852/revisions/b9be29ad-557a-4c20-a70e-0cdb49d998e4/checkOuts",
74 "type": "application/vnd.sas.collection",
75 "itemType": "application/vnd.sas.dcm.summary"
76 }
77 ],
78 "folderType": "myFolder",
79 "version": 4,
80 "status": "valid"
81 },
82 {
83 "creationTimeStamp": "2021-09-15T18:45:18.114Z",
84 "modifiedTimeStamp": "2021-09-15T18:45:18.114Z",
85 "createdBy": "sasdemo",
86 "modifiedBy": "sasdemo",
87 "id": "26fcf4ca-d37e-4613-8b75-bf09add09003",
88 "name": "Treatment_4",
89 "majorRevision": 1,
90 "minorRevision": 0,
91 "checkout": false,
92 "locked": false,
93 "attributes": [
94 {
95 "id": "a7ebea09-da95-4fd0-bbc7-934006e21aa1",
96 "name": "foo",
97 "valueConstraints": {
98 "dataType": "string",
99 "required": false,
100 "readOnly": false,
101 "multiple": false,
102 "range": false
103 }
104 }
105 ],
106 "links": [
107 {
108 "method": "GET",
109 "rel": "up",
110 "href": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions",
111 "uri": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions",
112 "type": "application/vnd.sas.collection"
113 },
114 {
115 "method": "GET",
116 "rel": "self",
117 "href": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003",
118 "uri": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003",
119 "type": "application/vnd.sas.treatment.definition"
120 },
121 {
122 "method": "GET",
123 "rel": "alternate",
124 "href": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003",
125 "uri": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003",
126 "type": "application/vnd.sas.summary"
127 },
128 {
129 "method": "GET",
130 "rel": "checkOuts",
131 "href": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003/checkOuts",
132 "uri": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003/checkOuts",
133 "type": "application/vnd.sas.collection",
134 "itemType": "application/vnd.sas.dcm.summary"
135 }
136 ],
137 "folderType": "myFolder",
138 "sourceRevisionUri": "/treatmentDefinitions/definitions/8c21e6e2-a2e7-4296-a11a-ad19d2c40852/revisions/b9be29ad-557a-4c20-a70e-0cdb49d998e4",
139 "copyTimeStamp": "2021-09-15T18:45:18.114Z",
140 "version": 4,
141 "status": "valid"
142 }
143 ],
144 "limit": 10,
145 "version": 2
146}

Query Parameters

NameTypeRequiredDescription
limit
integer
false

Returns the maximum number of revisions of the specified treatment definition.

Examples:
500
start
integer
false

Returns the index of the first revision of the specified treatment definition.

Examples:
100

Header Parameters

NameTypeRequiredDescription
Accept-Item
string<media-type>
false

Used for selecting the desired item representation.

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

Request Body

Select resource IDs for which details of the treatment definition are to be found.

Identifies a set of resources.

NameTypeRequiredDescription
version
integer
true

The schema version number of this media type. This representation is version 1.

template
string
false

A URI template in which the {id} parameter can be replaced with a value from the "resources" array in order to yield the URI of the identified resource.

type
string
false

Specifies whether the resources array contains IDs, URIs, or both.

Allowed values:
idurimixed
resources
array [string]
true

An array of resource IDs or URIs

links
array [Link]
false

An array of links to related resources and actions.

Responses

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