Update
Using the PUT
method to /api/v1/integrations/datasets/{id}
you can update your dataset metadata with a new version.
curl -X PUT \
--location 'https://api.dev.hdruk.cloud/api/v1/integrations/datasets/<dataset_id>' \
--header 'x-application-id: <your app ID >' \
--header 'x-client-id: <your client ID >' \
--header 'Content-Type: application/json' \
--data-raw '{
"metadata": {<JSON metadata conforming to supported schema>}
}'
Running this returns a structure like:
{
"message": "success",
"data": {
"id": 875,
...
"create_origin": "API",
"status": "ACTIVE",
"versions": [
{
"id": 875,
...
},
{
"id": 882,
...
},
...
]
}
}
This shows the data we now hold for this dataset (i.e. multiple versions as you have now updated your dataset with a new version).
Errors
Please see the previous page regarding dataset creation (Using the API > Datasets > Create
) for details of the likely error messages you may receive from the PUT
endpoint.