Context Node (POST, PATCH)

Create and update context node.

Resource 

1/connect/context-definitions/{contextDefinitionId}/context-nodes

The {contextDefinitionId} parameter is the ID of the context definition.

Example for POST 

1https://{yourInstance}.salesforce.com/services/data/v59.0/connect/context-definitions/{contextDefinitionId}/context-nodes

{yourInstance} is the domain name of your Salesforce instance.

Example for PATCH 

1https://{yourInstance}.salesforce.com/services/data/v59.0/connect/context-definitions/{contextDefinitionId}/context-nodes

Available Version 

59.0

Requires Chatter 

No

HTTP Methods 

POST, PATCH

Request Body for POST 

JSON Example 

1{
2    "contextNodes": [
3        {
4            "name": "Node_0",
5            "attributes": {
6                "contextAttributes": [
7                    {
8                        "dataType": "STRING",
9                        "fieldType": "INPUT",
10                        "name": "Attribute_1"
11                    }
12                ]
13            },
14            "childNodes": {
15                "contextNodes": [
16                    {
17                        "name": "Node_1",
18                        "attributes": {
19                            "contextAttributes": [
20                                {
21                                    "dataType": "NUMBER",
22                                    "fieldType": "INPUT",
23                                    "name": "Attribute_2"
24                                }
25                            ]
26                        }
27                    }
28                ]
29            }
30        }
31    ]
32}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
attributesContext Attributes Input []List of context attributes.Optional59.0
childNodesContext Nodes Input []List of child context nodes.Optional59.0
contextNodeIdStringID of the context node.Required59.0
isTransposableBooleanSpecifies if the context node is used for the transposable feature (true) or not (false).Optional59.0
nameStringName of the context node.Required59.0
parentNodeIdStringID of (parent) context node.Optional59.0
tagsContext Tag Input []List of context tags.Optional59.0

Response Body for POST 

Context Node List Output

Request Body for PATCH 

JSON Example 

1{
2    "contextNodes": [
3        {
4            "name": "Node_0_patch",
5            "contextNodeId": "11oxx000001G9D2AAK"
6        }
7    ]
8}

Response Body for PATCH 

Context Node List Output