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.

Update Context Attributes Action

Update the attributes in the context instance using tags.

This action is available in API version 63.0 and later.

Special Access Rules

Available in Developer, Enterprise, Professional, and Unlimited editions for Industries clouds where Context Service is enabled.

Supported REST HTTP Methods

URI
/services/data/v59.0/actions/standard/updateContextAttributes
Formats
JSON, XML
HTTP Methods
POST
Authentication
Authorization: Bearertoken

Inputs

Input Details
contextId
Type

string

Description
Required. ID of the context instance.
nodePathAndUpdatedValues
Type

string

Description
Optional. The JSON containing the node path and its updated values.

Outputs

None.

Example

POST

This sample request is for the Update Context Attributes action.

1{
2  "inputs": [
3    {
4      "contextId": "0000000a07da09100251752497651022c35b6150a4d04cd6a84bf1a0439cc609",
5      "NodePathAndUpdatedValues": [
6        {
7          "nodePath": {
8            "dataPath": [
9              "account1",
10              "contact1"
11            ]
12          },
13          "tagValues": [
14            {
15              "tagName": "Contact_LastName",
16              "tagValue": "UPDATED_MILLER"
17            }
18          ]
19        }
20      ]
21    }
22  ]
23}