What is the proper request body format for saved_objects/_bulk_delete API?

I'm unable to use the bulk_delete API on 8.8.2 neither using Kibana Console or curl. Can you give me a working example?

curl -X POST "http://localhost:5601/api/saved_objects/_bulk_delete" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
    "type": "url",
    "id": "6995dc78e1239361610f02309ee9a5fe",
    "type": "dashboard",
    "id": "my-dashboard",

gives me {"statusCode":400,"error":"Bad Request","message":"Invalid request payload JSON format"}


This is our documentation for it - Bulk delete object API | Kibana Guide [8.11] | Elastic

Could you please recheck your command and see what happens if you execute it in dev console?


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.