Get a list of treatment definition groups

get/definitionGroups
Internal-Use Only

Returns a list of all the treatment definition groups.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/treatmentDefinitions/definitionGroups",
7 "uri": "/treatmentDefinitions/definitionGroups",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.treatment.definition.group"
10 },
11 {
12 "method": "GET",
13 "rel": "self",
14 "href": "/treatmentDefinitions/definitionGroups?sortBy=name&start=2&limit=1",
15 "uri": "/treatmentDefinitions/definitionGroups?sortBy=name&start=2&limit=1",
16 "type": "application/vnd.sas.collection",
17 "itemType": "application/vnd.sas.summary"
18 },
19 {
20 "method": "GET",
21 "rel": "first",
22 "href": "/treatmentDefinitions/definitionGroups?sortBy=name&start=0&limit=1",
23 "uri": "/treatmentDefinitions/definitionGroups?sortBy=name&start=0&limit=1",
24 "type": "application/vnd.sas.collection",
25 "itemType": "application/vnd.sas.summary"
26 },
27 {
28 "method": "GET",
29 "rel": "prev",
30 "href": "/treatmentDefinitions/definitionGroups?sortBy=name&start=1&limit=1",
31 "uri": "/treatmentDefinitions/definitionGroups?sortBy=name&start=1&limit=1",
32 "type": "application/vnd.sas.collection",
33 "itemType": "application/vnd.sas.summary"
34 },
35 {
36 "method": "GET",
37 "rel": "next",
38 "href": "/treatmentDefinitions/definitionGroups?sortBy=name&start=3&limit=1",
39 "uri": "/treatmentDefinitions/definitionGroups?sortBy=name&start=3&limit=1",
40 "type": "application/vnd.sas.collection",
41 "itemType": "application/vnd.sas.summary"
42 },
43 {
44 "method": "POST",
45 "rel": "create",
46 "href": "/treatmentDefinitions/definitionGroups",
47 "uri": "/treatmentDefinitions/definitionGroups",
48 "type": "application/vnd.sas.vnd.sas.treatment.definition.group",
49 "responseType": "application/vnd.sas.treatment.definition.group"
50 }
51 ],
52 "name": "treatmentDefinitionGroups",
53 "accept": "application/vnd.sas.summary",
54 "start": 2,
55 "count": 5,
56 "items": [
57 {
58 "creationTimeStamp": "2021-09-16T18:34:43.865Z",
59 "modifiedTimeStamp": "2021-09-16T18:34:43.865Z",
60 "createdBy": "sasdemo",
61 "modifiedBy": "sasdemo",
62 "id": "d738c763-6d1f-4980-a3ec-b57dda234179",
63 "type": "treatmentGroup",
64 "name": "My Treatment Definition Group",
65 "links": [
66 {
67 "method": "GET",
68 "rel": "up",
69 "href": "/treatmentDefinitions/definitionGroups",
70 "uri": "/treatmentDefinitions/definitionGroups",
71 "type": "application/vnd.sas.collection"
72 },
73 {
74 "method": "GET",
75 "rel": "self",
76 "href": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179",
77 "uri": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179",
78 "type": "application/vnd.sas.treatment.definition.group"
79 },
80 {
81 "method": "GET",
82 "rel": "alternate",
83 "href": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179",
84 "uri": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179",
85 "type": "application/vnd.sas.summary"
86 },
87 {
88 "method": "DELETE",
89 "rel": "delete",
90 "href": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179",
91 "uri": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179"
92 },
93 {
94 "method": "PUT",
95 "rel": "update",
96 "href": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179",
97 "uri": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179",
98 "type": "application/vnd.sas.treatment.definition.group",
99 "responseType": "application/vnd.sas.treatment.definition.group"
100 },
101 {
102 "method": "GET",
103 "rel": "revisions",
104 "href": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179/revisions",
105 "uri": "/treatmentDefinitions/definitionGroups/d738c763-6d1f-4980-a3ec-b57dda234179/revisions",
106 "type": "application/vnd.sas.collection"
107 }
108 ],
109 "version": 2
110 }
111 ],
112 "limit": 1,
113 "version": 2
114}

Query Parameters

NameTypeRequiredDescription
parentFolderUri
string</folders/folders/{parentFolderId}>
false

The folder where the target treatment definition groups are located.

Examples:
"/folders/folders/@public"
filter
string<filter-criteria>
false

The criteria used for filtering the treatment definition groups. 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.

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

The criteria used for sorting the treatment definitions groups. 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.

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

Responses

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