Create a segmentation tree

post/segmentationTrees
Internal-Use Only

Creates a new segmentation tree based on the specified content.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "2022-03-18T01:42:10.472Z",
3 "modifiedTimeStamp": "2022-03-18T01:42:10.473Z",
4 "createdBy": "sasdemo",
5 "modifiedBy": "sasdemo",
6 "id": "b11a2b86-8b0b-419a-92ab-edd62881aaa5",
7 "name": "EvenChecker",
8 "majorRevision": 1,
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": "4a464942-1f81-4b11-9f41-6b841d06dafc",
64 "label": "even_check",
65 "valueNodes": [
66 {
67 "id": "a392e3f7-5779-48c4-885d-24e12714e384",
68 "label": "true",
69 "value": "true",
70 "outcomeName": "even"
71 },
72 {
73 "id": "4706f443-f458-4411-9a1f-d82f062dacc5",
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",
89 "uri": "/decisions/segmentationTrees",
90 "type": "application/vnd.sas.collection"
91 },
92 {
93 "method": "GET",
94 "rel": "self",
95 "href": "/decisions/segmentationTrees/b11a2b86-8b0b-419a-92ab-edd62881aaa5",
96 "uri": "/decisions/segmentationTrees/b11a2b86-8b0b-419a-92ab-edd62881aaa5",
97 "type": "application/vnd.sas.decision.segmentation.tree"
98 },
99 {
100 "method": "GET",
101 "rel": "alternate",
102 "href": "/decisions/segmentationTrees/b11a2b86-8b0b-419a-92ab-edd62881aaa5",
103 "uri": "/decisions/segmentationTrees/b11a2b86-8b0b-419a-92ab-edd62881aaa5",
104 "type": "application/vnd.sas.summary"
105 },
106 {
107 "method": "DELETE",
108 "rel": "delete",
109 "href": "/decisions/segmentationTrees/b11a2b86-8b0b-419a-92ab-edd62881aaa5",
110 "uri": "/decisions/segmentationTrees/b11a2b86-8b0b-419a-92ab-edd62881aaa5"
111 },
112 {
113 "method": "PUT",
114 "rel": "update",
115 "href": "/decisions/segmentationTrees/b11a2b86-8b0b-419a-92ab-edd62881aaa5",
116 "uri": "/decisions/segmentationTrees/b11a2b86-8b0b-419a-92ab-edd62881aaa5",
117 "type": "application/vnd.sas.decision.segmentation.tree",
118 "responseType": "application/vnd.sas.decision.segmentation.tree"
119 }
120 ],
121 "version": 1
122}

Query Parameters

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

The folder in which the new segmentation tree is placed.

fromRevisionUri
string</decisions/segmentationTrees/{segmentationTreeId}/revisions/{revisionId}>
false

This value specifies the URI of the segmentation tree revision from which the new segmentation tree is being created. This property enables you to trace the lineage of a segmentation tree.

Request Body

The details to create a segmentation tree.

The representation of a segmentation tree.

NameTypeRequiredDescription
id
string
false

The string ID for the segmentation tree.

creationTimeStamp
string<date-time>
false

The timestamp for when the segmentation tree was created.

createdBy
string
false

The ID of the user who created the segmentation tree.

modifiedTimeStamp
string<date-time>
false

The timestamp for when the segmentation tree properties were modified.

modifiedBy
string
false

The ID of the user who modified the segmentation tree.

name
string
true

The name for the segmentation tree.

<= 100 characters
description
string
false

The description for the segmentation tree.

<= 1000 characters
majorRevision
integer
false

The major version number of the current revision of the segmentation tree. This value is assigned by the service. The user only has control of whether the major number or minor number is incremented when creating a new revision.

minorRevision
integer
false

The minor version number of the current revision of the segmentation tree. This value is assigned by the service. The user only has control of whether the major number or minor number is incremented when creating a new revision.

locked
boolean
false

A flag that indicates whether the content that is being viewed is locked or editable.

folderType
string
false

The type of folder where the segmentation tree is located.

checkout
boolean
false

A flag that indicates whether the segmentation tree is a user's working copy of another segmentation tree.

sourceRevisionUri
string
false

The URI of the segmentation tree revision from which this segmentation tree is being created.

revisionId
string
false

The string ID for a segmentation tree revision. This string is available only if the operation that returns this object has to handle a revision.

revisionUri
string
false

The URI for a segmentation tree revision. This is available only if the operation that returns this object has to handle a revision.

copyTimeStamp
string<date-time>
false

The timestamp for when the segmentation tree revision was copied.

signature
array [Segmentation Tree Signature Term]
false

The set of terms that are local to this segmentation tree with input and output behavior.

codeFiles
array
false

The code files that are associated with this segmentation tree.

outcomes
array [Segmentation Tree Outcome]
false

The outcomes that are associated with this segmentation tree.

matrices
array [Segmentation Tree Matrix]
false

The matrices that are associated with this segmentation tree.

booleanExpressions
array [Segmentation Tree Boolean Expression]
false

The Boolean expressions that are associated with this segmentation tree.

node
anyOfSegmentation Tree Variable NodeSegmentation Tree Boolean Expression NodeSegmentation Tree Matrix Node
false

The root node that is associated with this segmentation tree.

links
array [Link]
false

Links to related resources or operations.

version
integer
false

The version number of the domain representation. This representation is version 1.

Responses

StatusMeaningDescription
201CreatedThe segmentation tree was created.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema