Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
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
Example body
Code Block |
---|
{ "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
Code Block |
---|
2 |