Add decision node type content to a decision node type

post/decisionNodeTypes/{nodeTypeId}/content
Internal-Use Only

Creates a new decision node type content associated with a decision node type based on the provided content.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "2021-05-07T18:33:04.846Z",
3 "modifiedTimeStamp": "2021-05-07T18:33:04.846Z",
4 "createdBy": "sasdemo",
5 "modifiedBy": "sasdemo",
6 "id": "19fc0c93-6494-4567-852c-82f5a535d674",
7 "nodeTypeId": "044003f4-ab99-4be9-831b-40da3462b359",
8 "contentType": "DS2",
9 "staticContent": "package \"${PACKAGE_NAME}\" /inline;\n method execute(double a, double c, in_out double b);\n b=a+c;\n end;\nendpackage;\n",
10 "nodeTypeSignatureTerms": [
11 {
12 "name": "a",
13 "dataType": "decimal",
14 "direction": "input"
15 },
16 {
17 "name": "c",
18 "dataType": "decimal",
19 "direction": "input"
20 },
21 {
22 "name": "b",
23 "dataType": "decimal",
24 "direction": "output"
25 }
26 ],
27 "links": [
28 {
29 "method": "GET",
30 "rel": "self",
31 "href": "/decisions/decisionNodeTypes/044003f4-ab99-4be9-831b-40da3462b359/content",
32 "uri": "/decisions/decisionNodeTypes/044003f4-ab99-4be9-831b-40da3462b359/content",
33 "responseType": "application/vnd.sas.decision.node.type.content"
34 }
35 ]
36}

Path Parameters

NameTypeRequiredDescription
nodeTypeId
string
true

The identifier for the decision node type.

Examples:
"8fdb696e-e9e3-43ef-a162-25b4d45faaee"

Request Body

DecisionNodeTypeContent representation to create a decision node type content.

Contains information needed to extend the decision flow with a new node type including the decision node type's signature and provision for acquiring decision step code for the associated decision node type.

NameTypeRequiredDescription
nodeTypeId
string
false

The id of the decision node type associated with this decision node type content

contentType
string
false

The type of logic to be executed when the associated decision node type is included in a decision flow (DS2 is only support contentType as of now)

staticContent
string
false

The logic to be executed when a decision node type of type "static" is is executed. If the decision node type is not of type "static" this property should be null

restContent
object
false

Information about the REST service that manages the content for the node type. If the decision node type is of type "static" this property should be null.

nodeTypeSignatureTerms
array [Decision Step Code Signature Term]
false

Signature variables of the decision node type. Only required if type property is "static".

modifiedBy
string
false

The user ID of the authenticated user who last updated the object used in the decision step.

Responses

StatusMeaningDescription
201CreatedThe decision node type was created.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema
412Precondition FailedThe `If-Match` request header did not match the resource's entity tag.HeadersSchema
428Precondition RequiredThe request headers did not include an `If-Match`.HeadersSchema