Notifications

16 views

This endpoint allows to mass delete open data changesets based upon their creation date.

Alert iconWarning: You cannot UNDO this action. Use it with care!

Endpoint

method
DELETE
URI
/api/v1/data/changeset

Headers

!
Authorization
Bearer <userToken or APIkey>

Parameters


allowDeleteOfContent
false | true
default is false (empty changesets only will be deleted). Defines if only changesets without any content should be deleted, or also ones with content

to
2020-05-15
default is the current date. All data changesets up to and including this date will be removed.

userSpecific
false | true
default is true (means only changesets created by the userToken are removed). in case the API call should delete changesets for other users then this argument should be set to false

As none of the parameters are mandatory, in case only the URI is provided with the method, all empty data changesets created by the user which launches the API call will be removed. 

Response

The response is a JSON object of all node changes.

In case of insufficient permissions, the response object will contain a {"AccessDeniedException"} message

example cURL

curl -X DELETE 'https://demo.sweagle.com/api/v1/data/changeset?allowDeleteOfContent=true&to=2020-05-20' -H "Authorization: bearer Xeb940d3-ea37-4766-bb6c-f0b83deafb6f" 

Article Information

Last Updated:2020-10-15 01:16:06
Published:2020-10-15