Update a segmentation tree
put/segmentationTrees/{segmentationTreeId}
Updates the segmentation tree.
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": 1122}
Name | Type | Required | Description |
---|---|---|---|
segmentationTreeId | string | true | The identifier for the segmentation tree. Examples: "094078e7-278a-4719-a704-6e5e65af29ee" |
Name | Type | Required | Description |
---|---|---|---|
If-Match | string | true | The ETag value for when the originating object was retrieved. Examples: "\"kknyjgku\"" |
The segmentation tree content to use in the update.
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 | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The request was invalid. | Headers | Schema |
404 | Not Found | No segmentation tree exists at the requested path. | Headers | Schema |
412 | Precondition Failed | The `If-Match` request header did not match the resource's entity tag. | Headers | Schema |
428 | Precondition Required | The request headers did not include an `If-Match` precondition. | Headers | Schema |