Page tree
Skip to end of metadata
Go to start of metadata

Description

Updates all or specific records for a key in a related data set. For the requests without filter, the behavior is the same as in file import ("delete all + add").

There is no possibility to update the unique RD column. The unique column is treated as a part of the key that's why to change such entities it needs to be deleted and created as the new row.

Request path

POST [REST URL]/relatedData/updateRecords

Request Body Type

RelatedDataRecordAndFilter

Example body

{
  "datasetName": "products",
  "key": "testuser@domain.com",
  "data": [
    {
      "name": "quantity",
      "value": "14"         
    }  
  ]
  ,
  "filter": [{
      "name": "bicycle",
      "value": "1"       
    }]
}

Successful response - number of deleted previous occurrences for the specified key. One record was added

2
  • No labels