/relatedData/updateRecords
  • 1 Minute to read
  • Dark
    Light

/relatedData/updateRecords

  • Dark
    Light

Article summary

Post
/relatedData/updateRecords

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 body example:

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

Body parameters
Expand All
object
datasetName
string
key
string
data
Array of object (Attribute)
object
name
string
value
string
filter
Array of object (Attribute)
object
name
string
value
string
Responses
200

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

integer (int64)
400

Was this article helpful?

What's Next