Get a treatment definition revision summary

get/definitions/{definitionId}

Returns the revision summary representation of the specified treatment definition.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "2021-09-15T20:52:08.565Z",
3 "modifiedTimeStamp": "2021-09-15T20:52:08.567Z",
4 "createdBy": "sasdemo",
5 "modifiedBy": "sasdemo",
6 "id": "da85cd3c-7c7a-437c-acac-eca2819c9a6d",
7 "name": "My Treatment Definition",
8 "majorRevision": 1,
9 "minorRevision": 0,
10 "checkout": false,
11 "locked": false,
12 "attributes": [
13 {
14 "id": "7955490c-a631-4326-9620-93e9627d95d0",
15 "name": "Discount",
16 "defaultValue": 30,
17 "valueConstraints": {
18 "dataType": "number",
19 "format": "decimal",
20 "required": false,
21 "readOnly": false,
22 "multiple": false,
23 "range": false
24 }
25 },
26 {
27 "id": "a4f30206-453f-47a0-81d1-dccc840f2a55",
28 "name": "Product",
29 "defaultValue": "iPhone",
30 "valueConstraints": {
31 "dataType": "string",
32 "required": false,
33 "readOnly": false,
34 "multiple": false,
35 "range": false,
36 "enum": [
37 "iPhone",
38 "Samsung"
39 ]
40 }
41 },
42 {
43 "id": "7aaac9d2-1ef9-4f76-bca8-4e9f39be292f",
44 "name": "Offertext",
45 "defaultValue": "Get a new IPhone now and get 30% off iPad",
46 "valueConstraints": {
47 "dataType": "string",
48 "required": false,
49 "readOnly": false,
50 "multiple": false,
51 "range": false
52 }
53 },
54 {
55 "id": "2cc0956b-2a0c-4d41-8829-45ed273a05f5",
56 "name": "Budget",
57 "defaultValue": 500,
58 "valueConstraints": {
59 "dataType": "number",
60 "format": "decimal",
61 "required": false,
62 "readOnly": true,
63 "multiple": false,
64 "range": false
65 }
66 },
67 {
68 "id": "2f9141df-96d3-473a-a3f6-6279c29e63a1",
69 "name": "Goal",
70 "defaultValue": "2018-07-13",
71 "valueConstraints": {
72 "dataType": "string",
73 "format": "date",
74 "required": false,
75 "readOnly": false,
76 "multiple": false,
77 "range": false
78 }
79 },
80 {
81 "id": "5b2743aa-374c-428c-96eb-5e4e22ba7e28",
82 "name": "TimesClicked",
83 "valueConstraints": {
84 "dataType": "number",
85 "format": "integer",
86 "required": false,
87 "readOnly": false,
88 "multiple": false,
89 "range": false
90 }
91 }
92 ],
93 "links": [
94 {
95 "method": "GET",
96 "rel": "up",
97 "href": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions",
98 "uri": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions",
99 "type": "application/vnd.sas.collection"
100 },
101 {
102 "method": "GET",
103 "rel": "self",
104 "href": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003",
105 "uri": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003",
106 "type": "application/vnd.sas.treatment.definition"
107 },
108 {
109 "method": "GET",
110 "rel": "alternate",
111 "href": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003",
112 "uri": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003",
113 "type": "application/vnd.sas.summary"
114 },
115 {
116 "method": "GET",
117 "rel": "checkOuts",
118 "href": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003/checkOuts",
119 "uri": "/treatmentDefinitions/definitions/cf5a5a55-052b-4f58-83e5-8a10d3d86bfd/revisions/26fcf4ca-d37e-4613-8b75-bf09add09003/checkOuts",
120 "type": "application/vnd.sas.dcm.summary"
121 }
122 ],
123 "folderType": "myFolder",
124 "sourceRevisionUri": "/treatmentDefinitions/definitions/8c21e6e2-a2e7-4296-a11a-ad19d2c40852/revisions/b9be29ad-557a-4c20-a70e-0cdb49d998e4",
125 "copyTimeStamp": "2021-09-15T18:45:18.114Z",
126 "version": 4,
127 "status": "valid"
128}

Path Parameters

NameTypeRequiredDescription
definitionId
string
true

The unique identifier for the treatment definition.

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
404Not Found

No treatment definition exists at the requested path.

HeadersSchema