I’m currently using the generate endpoint to get a new dataset, something like this:
https://api.mockaroo.com/api/generate.csv?key=abcd1234&count=50&schema=foo
then immediately POSTing that data back to the dataset endpoint:
https://api.mockaroo.com/api/datasets/foo?key=abcd1234&filename=foo.csv
with the exact response.data object for the payload. The API returns a 200 response
From the Datasets view in the UI, it appears something has happened, as it now reads “4 minutes ago” in the Last Modified column, however when I look at the data, it is clear none of the data changed.
If I manually Preview or Generate the data from the UI, it appears to work.