Create a segmentation tree revision
Creates a new revision for the segmentation tree.
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": 1114}
Name | Type | Required | Description |
---|---|---|---|
segmentationTreeId | string | true | The identifier for a segmentation tree. Examples: "094078e7-278a-4719-a704-6e5e65af29ee" |
Name | Type | Required | Description |
---|---|---|---|
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 created. This property enables you to trace the lineage of a segmentation tree. Examples: "/decisions/segmentationTrees/ef613bb5-d855-4227-97ac-9e9bfefe3e4a/revisions/ba14828c-b4b6-4a3a-9246-f51dd16ffcba" |
revisionType | string | false | This value determines how the server generates the major or minor revision numbers. Valid values are 'major' or 'minor'. If 'major' is specified, the next available major revision number is initiated. For example, if the segmentation tree has revisions 1.0, 1.1, 1.2, 2.0, 2.1, when you create a new major revision, the result is 3.0. If 'minor' is specified, the next available minor revision number is reserved based on the existing revisions. The default value is 'minor', if not specified. Allowed values: majorminor Default: minor Examples: "major" |
The representation of a segmentation tree.
Name | Type | Required | Description |
---|---|---|---|
name | string | true | The name for the segmentation tree. <= 100 characters |
description | string | false | The description for the segmentation tree. <= 1000 characters |
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. |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | A revision of the segmentation tree was created. | Headers | Schema |
400 | Bad Request | The request was invalid. | Headers | Schema |
404 | Not Found | No segmentation tree exists at the requested path. | Headers | Schema |