Replace data in dataset programmatically?

Hey guys,

There is an API call for /dataset/importjson/{dataSetId}, but is there a way to use this call to replace the data in the dataset the same way that the Overwrite existing data? option does in the CMS?

Hey :slight_smile:

You can provide a truncate parameter to the JSON data body, e.g.

    truncate: true,
    rows: [{col1: value1, col2: value2}]

Thank you, good sir!

1 Like