Get a list of all segmentation trees

get/segmentationTrees
Internal-Use Only

Returns a resource collection of all segmentation trees.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/decisions/segmentationTrees",
7 "uri": "/decisions/segmentationTrees",
8 "type": "application/vnd.sas.collection"
9 },
10 {
11 "method": "GET",
12 "rel": "self",
13 "href": "/decisions/segmentationTrees?sortBy=creationTimeStamp:descending&start=2&limit=1",
14 "uri": "/decisions/segmentationTrees?sortBy=creationTimeStamp:descending&start=2&limit=1",
15 "type": "application/vnd.sas.collection",
16 "itemType": "application/vnd.sas.summary"
17 },
18 {
19 "method": "GET",
20 "rel": "first",
21 "href": "/decisions/segmentationTrees?sortBy=creationTimeStamp:descending&start=0&limit=1",
22 "uri": "/decisions/segmentationTrees?sortBy=creationTimeStamp:descending&start=0&limit=1",
23 "type": "application/vnd.sas.collection",
24 "itemType": "application/vnd.sas.summary"
25 },
26 {
27 "method": "GET",
28 "rel": "prev",
29 "href": "/decisions/segmentationTrees?sortBy=creationTimeStamp:descending&start=1&limit=1",
30 "uri": "/decisions/segmentationTrees?sortBy=creationTimeStamp:descending&start=1&limit=1",
31 "type": "application/vnd.sas.collection",
32 "itemType": "application/vnd.sas.summary"
33 },
34 {
35 "method": "GET",
36 "rel": "next",
37 "href": "/decisions/segmentationTrees?sortBy=creationTimeStamp:descending&start=3&limit=1",
38 "uri": "/decisions/segmentationTrees?sortBy=creationTimeStamp:descending&start=3&limit=1",
39 "type": "application/vnd.sas.collection",
40 "itemType": "application/vnd.sas.summary"
41 },
42 {
43 "method": "POST",
44 "rel": "create",
45 "href": "/decisions/segmentationTrees",
46 "uri": "/decisions/segmentationTrees",
47 "type": "application/vnd.sas.decision.segmentation.tree",
48 "responseType": "application/vnd.sas.decision.segmentation.tree"
49 }
50 ],
51 "name": "segmentationTrees",
52 "accept": "application/vnd.sas.summary",
53 "start": 2,
54 "items": [
55 {
56 "creationTimeStamp": "2022-03-18T17:00:26.172Z",
57 "modifiedTimeStamp": "2022-03-18T17:00:26.174Z",
58 "createdBy": "sasdemo",
59 "modifiedBy": "sasdemo",
60 "id": "647ccb1f-68d1-419a-9f09-1942bea0a122",
61 "type": "segmentationTree",
62 "name": "EvenChecker",
63 "links": [
64 {
65 "method": "GET",
66 "rel": "up",
67 "href": "/decisions/segmentationTrees",
68 "uri": "/decisions/segmentationTrees",
69 "type": "application/vnd.sas.collection"
70 },
71 {
72 "method": "GET",
73 "rel": "self",
74 "href": "/decisions/segmentationTrees/647ccb1f-68d1-419a-9f09-1942bea0a122",
75 "uri": "/decisions/segmentationTrees/647ccb1f-68d1-419a-9f09-1942bea0a122",
76 "type": "application/vnd.sas.decision.segmentation.tree"
77 },
78 {
79 "method": "GET",
80 "rel": "alternate",
81 "href": "/decisions/segmentationTrees/647ccb1f-68d1-419a-9f09-1942bea0a122",
82 "uri": "/decisions/segmentationTrees/647ccb1f-68d1-419a-9f09-1942bea0a122",
83 "type": "application/vnd.sas.summary"
84 },
85 {
86 "method": "DELETE",
87 "rel": "delete",
88 "href": "/decisions/segmentationTrees/647ccb1f-68d1-419a-9f09-1942bea0a122",
89 "uri": "/decisions/segmentationTrees/647ccb1f-68d1-419a-9f09-1942bea0a122"
90 },
91 {
92 "method": "PUT",
93 "rel": "update",
94 "href": "/decisions/segmentationTrees/647ccb1f-68d1-419a-9f09-1942bea0a122",
95 "uri": "/decisions/segmentationTrees/647ccb1f-68d1-419a-9f09-1942bea0a122",
96 "type": "application/vnd.sas.decision.segmentation.tree",
97 "responseType": "application/vnd.sas.decision.segmentation.tree"
98 }
99 ],
100 "version": 2
101 }
102 ],
103 "limit": 1,
104 "version": 2
105}

Query Parameters

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

The folder in which the target segmentation trees are located.

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

The criteria for filtering the segmentation trees. See Filtering in REST APIs.

The following properties support filtering:

  • createdBy
  • modifiedBy
  • creationTimeStamp
  • modifiedTimeStamp
  • id
  • name
  • description
  • majorRevision
  • minorRevision
  • signature.name
  • signature.description
  • signature.dataType
  • signature.length
  • signature.direction
Examples:
"gt(modifiedTimeStamp, '2021-05-03T15:38:45.654Z')"
limit
integer
false

The maximum number of items to return on 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 for sorting the segmentation trees. See Sorting in REST APIs. The following properties support sorting:

  • createdBy * modifiedBy * creationTimeStamp * modifiedTimeStamp * id * name * description * majorRevision * minorRevision
Default:
creationTimeStamp:descending
Examples:
"modifiedTimeStamp:descending"
start
integer
false

The starting index for the first item on a page. The index is 0-based.

Default:
0
Examples:
100

Header Parameters

NameTypeRequiredDescription
Accept-Item
string<media-type>
false

The desired item representation.

Allowed values:
application/vnd.sas.decision.segmentation.tree+jsonapplication/vnd.sas.summary+jsonapplication/vnd.sas.dcm.summary+json
Default:
application/vnd.sas.summary+json
Examples:
"application/vnd.sas.decision.segmentation.tree+json"

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema
406Not AcceptableThe request was not acceptable. An invalid media type was specified for the `Accept-Item` header value.HeadersSchema