- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
03-07-2024 03:08 AM
Hello,
I am sending a command like below on the API.
!core-api-post uri="/incident/batchDelete" body="{\"filter\":{\"id\":[\"260906\"]}}"
But it does not delete the incidents I want. It does not give an error.
How to use this correctly? I want to delete all indicents before a certain date (for example 01.01.2024).
Thanks.
03-07-2024 01:51 PM - edited 03-07-2024 01:51 PM
Hello,
In your payload, the incident id is passed as a filter, which is incorrect. Here is an example of the correct payload format,
!core-api-post uri=uri=`/incident/batchDelete` body=`{"ids":["260906"]}`
Additionally, the filter parameter accepts a query if you need to delete all incidents before a certain date. You can view the payload format on developer tools, by monitoring the request to delete an incident.
Please let me know if you have further questions.
Thanks,
Rahul
03-07-2024 02:01 PM
as an example, can you forward a query that will delete all incidents before 2024-01-01 00:00?
03-07-2024 02:06 PM
In addition, get error like this;
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!