Get revisions across treatment definition groups

post/definitionGroupRevisions
Internal-Use Only

Returns a list of the treatment definition group 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/definitionGroupRevisions",
7 "uri": "/treatmentDefinitions/definitionGroupRevisions",
8 "type": "application/vnd.sas.collection"
9 },
10 {
11 "method": "POST",
12 "rel": "self",
13 "href": "/treatmentDefinitions/definitionGroupRevisions?start=0&limit=10",
14 "uri": "/treatmentDefinitions/definitionGroupRevisions?start=0&limit=10",
15 "type": "application/vnd.sas.collection"
16 }
17 ],
18 "name": "treatmentDefinitionGroupRevisions",
19 "accept": "application/vnd.sas.treatment.definition.group",
20 "start": 0,
21 "count": 2,
22 "items": [
23 {
24 "creationTimeStamp": "2021-09-16T18:34:43.865Z",
25 "modifiedTimeStamp": "2021-09-16T18:34:43.865Z",
26 "createdBy": "sasdemo",
27 "modifiedBy": "sasdemo",
28 "id": "5083819a-b690-43eb-a676-5130c465435c",
29 "name": "My Treatment Definition Group",
30 "majorRevision": 1,
31 "minorRevision": 0,
32 "checkout": false,
33 "locked": false,
34 "members": [
35 {
36 "definitionId": "81b5f14a-f131-4a2c-a84f-62175b27a9a1",
37 "definitionName": "Treatment_2",
38 "definitionRevisionId": "ac372328-9220-44c1-8ee5-d2d75607bc87",
39 "definitionRevisionName": 1
40 },
41 {
42 "definitionId": "8c21e6e2-a2e7-4296-a11a-ad19d2c40852",
43 "definitionName": "Treatment_1",
44 "definitionRevisionId": "b9be29ad-557a-4c20-a70e-0cdb49d998e4",
45 "definitionRevisionName": 1,
46 "attributeValueMappings": [
47 {
48 "attributeId": "3064402c-b83f-4c43-baa7-e68c28028e2a",
49 "attributeName": "foo",
50 "mappingType": "variable",
51 "value": "foo"
52 }
53 ]
54 }
55 ],
56 "links": [
57 {
58 "method": "GET",
59 "rel": "up",
60 "href": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179/revisions",
61 "uri": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179/revisions",
62 "type": "application/vnd.sas.collection"
63 },
64 {
65 "method": "GET",
66 "rel": "self",
67 "href": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179/revisions/5083819a-b690-43eb-a676-5130c465435c",
68 "uri": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179/revisions/5083819a-b690-43eb-a676-5130c465435c",
69 "type": "application/vnd.sas.treatment.definition.group"
70 },
71 {
72 "method": "GET",
73 "rel": "alternate",
74 "href": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179/revisions/5083819a-b690-43eb-a676-5130c465435c",
75 "uri": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179/revisions/5083819a-b690-43eb-a676-5130c465435c",
76 "type": "application/vnd.sas.summary"
77 },
78 {
79 "method": "GET",
80 "rel": "checkOuts",
81 "href": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179/revisions/5083819a-b690-43eb-a676-5130c465435c/checkOuts",
82 "uri": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179/revisions/5083819a-b690-43eb-a676-5130c465435c/checkOuts",
83 "type": "application/vnd.sas.collection",
84 "itemType": "application/vnd.sas.dcm.summary"
85 }
86 ],
87 "folderType": "myFolder",
88 "sourceRevisionUri": "/treatmentDefinitions/definitionGroups/bc0aa316-0d1d-4e8d-8251-87bf18220518/revisions/8a7cf41f-b327-4957-91b2-3fc8dce816af",
89 "copyTimeStamp": "2021-09-16T18:34:43.865Z",
90 "version": 4,
91 "status": "valid"
92 },
93 {
94 "creationTimeStamp": "2021-09-16T20:55:26.275Z",
95 "modifiedTimeStamp": "2021-09-16T20:55:26.275Z",
96 "createdBy": "sasdemo",
97 "modifiedBy": "sasdemo",
98 "id": "273a4794-bf9e-47bd-b437-f02575337479",
99 "name": "My Treatment Definition Group 2",
100 "majorRevision": 1,
101 "minorRevision": 2,
102 "checkout": false,
103 "locked": false,
104 "members": [
105 {
106 "definitionId": "81b5f14a-f131-4a2c-a84f-62175b27a9a1",
107 "definitionName": "Treatment_2",
108 "definitionRevisionId": "ac372328-9220-44c1-8ee5-d2d75607bc87",
109 "definitionRevisionName": 1
110 },
111 {
112 "definitionId": "da85cd3c-7c7a-437c-acac-eca2819c9a6d",
113 "definitionName": "My Treatment Definition",
114 "definitionRevisionId": "a6d2bfda-6fd3-4549-8613-e9b1d192b39b",
115 "definitionRevisionName": 1,
116 "attributeValueMappings": [
117 {
118 "attributeId": "a2ba0939-4b65-4508-ad43-c4d371c6b5eb",
119 "attributeName": "Discount",
120 "mappingType": "variable",
121 "value": "Discount"
122 },
123 {
124 "attributeId": "d39deb65-9e77-4340-a258-5a48f360954f",
125 "attributeName": "Product",
126 "mappingType": "variable",
127 "value": "Product"
128 },
129 {
130 "attributeId": "48cbcd9c-2517-4c1d-902a-28769751dff7",
131 "attributeName": "Offertext",
132 "mappingType": "variable",
133 "value": "Offertext"
134 },
135 {
136 "attributeId": "352b97bf-500f-435b-9358-855b5d4bb03a",
137 "attributeName": "Budget",
138 "mappingType": "variable",
139 "value": "Budget"
140 },
141 {
142 "attributeId": "ffabcac8-4f55-499f-b63d-5d8a52575547",
143 "attributeName": "Goal",
144 "mappingType": "variable",
145 "value": "Goal"
146 },
147 {
148 "attributeId": "8e67bc1d-a529-49dc-b704-9763549d43a3",
149 "attributeName": "TimesClicked",
150 "mappingType": "variable",
151 "value": "TimesClicked"
152 }
153 ],
154 "attributeNameAliases": [
155 {
156 "attributeId": "48cbcd9c-2517-4c1d-902a-28769751dff7",
157 "attributeName": "Offertext",
158 "aliasName": "Offer Text"
159 }
160 ]
161 }
162 ],
163 "links": [
164 {
165 "method": "GET",
166 "rel": "up",
167 "href": "/treatmentDefinitions/definitionGroups/625e99fd-4d8a-4ee2-b201-4fd3c062169f/revisions",
168 "uri": "/treatmentDefinitions/definitionGroups/625e99fd-4d8a-4ee2-b201-4fd3c062169f/revisions",
169 "type": "application/vnd.sas.collection"
170 },
171 {
172 "method": "GET",
173 "rel": "self",
174 "href": "/treatmentDefinitions/definitionGroups/625e99fd-4d8a-4ee2-b201-4fd3c062169f/revisions/273a4794-bf9e-47bd-b437-f02575337479",
175 "uri": "/treatmentDefinitions/definitionGroups/625e99fd-4d8a-4ee2-b201-4fd3c062169f/revisions/273a4794-bf9e-47bd-b437-f02575337479",
176 "type": "application/vnd.sas.treatment.definition.group"
177 },
178 {
179 "method": "GET",
180 "rel": "alternate",
181 "href": "/treatmentDefinitions/definitionGroups/625e99fd-4d8a-4ee2-b201-4fd3c062169f/revisions/273a4794-bf9e-47bd-b437-f02575337479",
182 "uri": "/treatmentDefinitions/definitionGroups/625e99fd-4d8a-4ee2-b201-4fd3c062169f/revisions/273a4794-bf9e-47bd-b437-f02575337479",
183 "type": "application/vnd.sas.summary"
184 },
185 {
186 "method": "GET",
187 "rel": "checkOuts",
188 "href": "/treatmentDefinitions/definitionGroups/625e99fd-4d8a-4ee2-b201-4fd3c062169f/revisions/273a4794-bf9e-47bd-b437-f02575337479/checkOuts",
189 "uri": "/treatmentDefinitions/definitionGroups/625e99fd-4d8a-4ee2-b201-4fd3c062169f/revisions/273a4794-bf9e-47bd-b437-f02575337479/checkOuts",
190 "type": "application/vnd.sas.collection",
191 "itemType": "application/vnd.sas.dcm.summary"
192 }
193 ],
194 "version": 4,
195 "status": "valid"
196 }
197 ],
198 "limit": 10,
199 "version": 2
200}

Query Parameters

NameTypeRequiredDescription
limit
integer
false

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

start
integer
false

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

Header Parameters

NameTypeRequiredDescription
Accept-Item
string<media-type>
false

Used for selecting desired item representation.

Allowed values:
application/vnd.sas.treatment.definition.group+jsonapplication/vnd.sas.summary+jsonapplication/vnd.sas.dcm.summary+json
Default:
application/vnd.sas.summary+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