Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Context Attribute (POST, PATCH)

Create a list of context attributes.
Resource
1/connect/context-nodes/${contextNodeId}/context-attributes
Example for POST
1https://yourInstance.salesforce.com/services/data/v59.0/connect/context-nodes/${contextNodeId}/context-attributes
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
Name Type Description Required or Optional Available Version
contextAttributeId String ID of the attribute. Required 59.0
dataType String Data type of the attribute. Required 59.0
domainSet String Comma separated node names referenced by this attribute. Optional 59.0
fieldType String Field type of the attribute. Required 59.0
isKey Boolean Specifies if it used for transposable feature (true) or not (false). Optional 59.0
isValue Boolean Specifies if it used for transposable feature (true) or not (false). Optional 59.0
name String Name of the attribute. Required 59.0
tags Context Tag Input[] List of tags for the attribute. Optional 59.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