Decision Matrix Version Rows

Retrieve a paginated list of or manage rows in a decision matrix version. Use this resource to add new rows, or update or delete existing rows in a decision matrix version.

Resource 

1/connect/omnistudio/decision-matrices/${matrixId}/versions/${versionId}/rows

Example 

1/services/data/v53.0/connect/omnistudio/decision-matrices/0lIR000000000u0MAA
2/versions/0lNR000000000rFMAQ/rows

Available Version 

53.0

Requires Chatter 

No

HTTP Methods 

GET, POST

Path parameters for GET 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
matrixIdStringThe ID of the decision matrix record.Required53.0
versionIdStringThe ID of the decision matrix version record.Required53.0

Request Parameters for GET 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
fileBooleanIndicates whether to get the rows by generating a CSV file for downloading (true) or fetching the rows in JSON format (false). The default value is false.Optional53.0

Response Body for GET 

Decision Matrix Rows Output

Request Body for POST 

JSON Example 

Add a row:

1{
2  "rows": [
3    {
4      "rowData": {
5        "Age": "45",
6        "Gender": "F",
7        "Premium": "2000"
8      }
9    }
10  ]
11}

Delete a row:

1{
2  "rows": [
3    {
4      "id": "a1j5w000006D04uAAC",
5      "action": "delete",
6      "rowData": {
7        "Age": "45",
8        "Gender": "F",
9        "Premium": "2000"
10      }
11    }
12  ]
13}

Update a row:

1{
2  "rows": [
3    {
4      "id": "a1j5w000006D04uAAC",
5      "action": "update",
6      "rowData": {
7        "Age": "45",
8        "Gender": "F",
9        "Premium": "1500"
10      }
11    }
12  ]
13}

Add row using a CSV file:

1{
2   "fileId" : "f1j5w000005D04uFGC"
3}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
fileIdStringThe ID of the Content Document Version that contains the rows details to be added or updated in a decision matrix version.Optional
Note: This field is required if you’re using a CVS file to add or update rows.
53.0
rowsDecision Matrix Row Input[]List of rows to be added, updated, or deleted in a decision matrix version.Required53.0

Response Body for POST 

Decision Matrix Output