Create a logic expression

post/logicExpressions

Creates or updates a logic expression.

Request Samples

1

Response Samples

1{
2 "items": [
3 {
4 "conditionCode": "EQ",
5 "createdBy": "videmo",
6 "creationTimeStamp": "2024-04-18T12:33:12.370Z",
7 "links": [
8 {
9 "method": "GET",
10 "rel": "self",
11 "href": "/svi-alert/logicExpressions/logicIdExample",
12 "uri": "/svi-alert/logicExpressions/logicIdExample",
13 "type": "application/vnd.sas.investigation.triage.logic.expression"
14 },
15 {
16 "method": "DELETE",
17 "rel": "delete",
18 "href": "/svi-alert/logicExpressions/logicIdExample",
19 "uri": "/svi-alert/logicExpressions/logicIdExample",
20 "type": "application/vnd.sas.investigation.triage.logic.expression"
21 },
22 {
23 "method": "PUT",
24 "rel": "update",
25 "href": "/svi-alert/logicExpressions/logicIdExample",
26 "uri": "/svi-alert/logicExpressions/logicIdExample",
27 "type": "application/vnd.sas.investigation.triage.logic.expression",
28 "responseType": "application/vnd.sas.investigation.triage.logic.expression"
29 },
30 {
31 "method": "GET",
32 "rel": "routingRule",
33 "href": "/svi-alert/routingRules/rule123",
34 "uri": "/svi-alert/routingRules/rule123",
35 "type": "application/vnd.sas.investigation.triage.routing.rule"
36 }
37 ],
38 "logicExpressionId": "logicIdExample",
39 "modifiedBy": "videmo",
40 "modifiedTimeStamp": "2024-04-18T12:33:12.370Z",
41 "propertyName": "currentScore",
42 "routingRuleId": "rule123",
43 "valueText": "example",
44 "version": 1
45 }
46 ]
47}

Header Parameters

NameTypeRequiredDescription
Accept-Item
string
false

Specifies the media type of the items returned.

Allowed values:
application/vnd.sas.investigation.triage.logic.expression+jsonapplication/vnd.sas.collection+json

Request Body

A logic expression representation.

NameTypeRequiredDescription
logicExpressionId
string
false
<= 36 characters
routingRuleId
string
false
<= 36 characters
propertyName
string
false
<= 500 characters
conditionCode
string
false
<= 20 characters
valueText
string
false
<= 1000 characters
links
array [Link]
false

A link representation.

Responses

StatusMeaningDescription
201Created

A logic expression was created.

HeadersSchema
400Bad Request

The request was invalid.

Schema
500Internal Server Error

The request could not be fulfilled because of an unexpected server error.

Schema