Context Attribute (POST, PATCH)

Create a list of context attributes.

Resource 

1/connect/context-nodes/{contextNodeId}/context-attributes

The {contextNodeId} parameter is the ID of the context node.

Example for POST 

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

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

Example for PATCH 

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

Available Version 

59.0

Requires Chatter 

No

HTTP Methods 

POST, PATCH

Request Body for POST 

JSON Example 

1{
2    "contextAttributes": [
3        {
4            "dataType": "STRING",
5            "fieldType": "INPUT",
6            "name": "Attribute_5",
7            "tags": {
8                "contextTags": [
9                    {
10                        "name": "Attribute_5_Tag"
11                    }
12                ]
13            }
14        },
15        {
16            "dataType": "NUMBER",
17            "fieldType": "OUTPUT",
18            "name": "Attribute_6"
19        }
20    ]
21}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
contextAttributeIdStringID of the attribute.Required59.0
dataTypeStringData type of the attribute.Required59.0
domainSetStringComma separated node names referenced by this attribute.Optional59.0
fieldTypeStringField type of the attribute.Required59.0
isKeyBooleanSpecifies if it used for transposable feature (true) or not (false).Optional59.0
isValueBooleanSpecifies if it used for transposable feature (true) or not (false).Optional59.0
nameStringName of the attribute.Required59.0
tagsContext Tag Input[]List of tags for the attribute.Optional59.0

Response Body for POST 

Context Attribute List

Request Body for PATCH 

JSON Example 

1{
2    "contextAttributes": [
3        {
4            "name": "Attribute_5_Updated",
5            "contextAttributeId": "11nxx000001hOvRAAU"
6        },
7        {
8            "name": "Attribute_6_Updated",
9            "contextAttributeId": "11nxx000001hOvSAAU"
10        }
11    ]
12}

Response Body for PATCH 

Context Attribute List