Get content for a segmentation tree revision

get/segmentationTrees/{segmentationTreeId}/revisions/{revisionId}
Internal-Use Only

Retrieves the content for the specified segmentation tree revision.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "2022-03-19T19:37:17.207Z",
3 "modifiedTimeStamp": "2022-03-19T19:37:17.209Z",
4 "createdBy": "sasdemo",
5 "modifiedBy": "sasdemo",
6 "id": "edaa1c3e-7b75-4713-8ace-af10b3415e91",
7 "name": "EvenChecker",
8 "majorRevision": 8,
9 "minorRevision": 0,
10 "signature": [
11 {
12 "name": "iseven",
13 "dataType": "boolean",
14 "direction": "output"
15 },
16 {
17 "name": "value",
18 "dataType": "integer",
19 "direction": "input"
20 }
21 ],
22 "codeFiles": [
23 {
24 "name": "even",
25 "type": "internal",
26 "code": "iseven = 1;"
27 },
28 {
29 "name": "odd",
30 "type": "internal",
31 "code": "iseven = 0;"
32 }
33 ],
34 "outcomes": [
35 {
36 "name": "even",
37 "actions": [
38 {
39 "type": "codeAssignment",
40 "codeFileName": "even"
41 }
42 ]
43 },
44 {
45 "name": "odd",
46 "actions": [
47 {
48 "type": "codeAssignment",
49 "codeFileName": "odd"
50 }
51 ]
52 }
53 ],
54 "matrices": [],
55 "booleanExpressions": [
56 {
57 "name": "even_check",
58 "expression": "mod(value, 2) = 0"
59 }
60 ],
61 "node": {
62 "type": "booleanExpression",
63 "id": "b10faaff-d494-49ed-a24c-a4860367b8d8",
64 "label": "even_check",
65 "valueNodes": [
66 {
67 "id": "d74fc591-1fba-4ea0-84be-ee30af74e710",
68 "label": "true",
69 "value": "true",
70 "outcomeName": "even"
71 },
72 {
73 "id": "ec9a6c17-00f1-44a0-ba65-474ddafda8b5",
74 "label": "false",
75 "value": "false",
76 "outcomeName": "odd"
77 }
78 ],
79 "booleanExpressionName": "even_check"
80 },
81 "folderType": "folder",
82 "checkout": false,
83 "locked": false,
84 "links": [
85 {
86 "method": "GET",
87 "rel": "up",
88 "href": "/decisions/segmentationTrees/53241f08-d215-4e84-9667-026d93996a3b/revisions",
89 "uri": "/decisions/segmentationTrees/53241f08-d215-4e84-9667-026d93996a3b/revisions",
90 "type": "application/vnd.sas.collection"
91 },
92 {
93 "method": "GET",
94 "rel": "self",
95 "href": "/decisions/segmentationTrees/53241f08-d215-4e84-9667-026d93996a3b/revisions/edaa1c3e-7b75-4713-8ace-af10b3415e91",
96 "uri": "/decisions/segmentationTrees/53241f08-d215-4e84-9667-026d93996a3b/revisions/edaa1c3e-7b75-4713-8ace-af10b3415e91",
97 "type": "application/vnd.sas.decision.segmentation.tree"
98 },
99 {
100 "method": "GET",
101 "rel": "alternate",
102 "href": "/decisions/segmentationTrees/53241f08-d215-4e84-9667-026d93996a3b/revisions/edaa1c3e-7b75-4713-8ace-af10b3415e91",
103 "uri": "/decisions/segmentationTrees/53241f08-d215-4e84-9667-026d93996a3b/revisions/edaa1c3e-7b75-4713-8ace-af10b3415e91",
104 "type": "application/vnd.sas.summary"
105 },
106 {
107 "method": "DELETE",
108 "rel": "delete",
109 "href": "/decisions/segmentationTrees/53241f08-d215-4e84-9667-026d93996a3b/revisions/edaa1c3e-7b75-4713-8ace-af10b3415e91",
110 "uri": "/decisions/segmentationTrees/53241f08-d215-4e84-9667-026d93996a3b/revisions/edaa1c3e-7b75-4713-8ace-af10b3415e91"
111 }
112 ],
113 "version": 1
114}

Path Parameters

NameTypeRequiredDescription
revisionId
string
true

The identifier for the segmentation tree revision.

Examples:
"cd942f3c-60a0-4b16-9184-4cb8921fb0eb"
segmentationTreeId
string
true

The identifier for the segmentation tree.

Examples:
"094078e7-278a-4719-a704-6e5e65af29ee"

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
404Not FoundNo segmentation tree revision exists at the requested path.HeadersSchema