These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Clear/DELETE sample/demo data in panels via REST

(edited)

Is it possible to clear out values of a panel data source limited to a specific field (not necessarily ID)?

As we deploy an integration/REST API-driven application, we run a scripted set of tests to verify that it's working as intended. We're looking for a way to clear out that test data, which is written and stored in custom panel data sources. We have a POSTMAN environment set up and can pull the details of what we'd like to clear with a GET:
https://{{URL}}/api/[PANELDATASOURCE]?ListName=xxxxxxxx

, but when we try the same call with a DELETE, we're getting the message: "The requested resource does not support http method 'DELETE'."

(which would indicate that it's not currently supported)

There does appear to be an option to delete tied to a UserId (https://developer.imis.com/reference/panel#deletepanelsourcedatabyid) and that could be an option, however, I'm hoping to be able to fine-tune this a little more by restricting on another field (in addition to just the ID).

Thanks

in addition: UserId, that would be the iMIS ID, would it not? When I am running the GET by ID:
https://{{URL}}/api/[PANELDATASOURCE]/[IMISID]
I am getting this message: "The identity did not match expected number of elements."

However, if I pass the ID as a parameter:
https://{{URL}}/api/[PANELDATASOURCE]?ID=[IMISID]
I get the list of records for the user - however, I still would like to DELETE and supply an additional field

Finally, if I try the DELETE as documented, I get that same message "The identity did not match expected number of elements."