From 9bfae0124b3255b48e5032e5cbc6db15a581a4e5 Mon Sep 17 00:00:00 2001 From: Jeroen Pinoy Date: Sun, 7 Mar 2021 23:18:57 +0100 Subject: [PATCH] chg: [automation] add /objects/delete --- automation/README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/automation/README.md b/automation/README.md index e3f0b36..0234ad6 100644 --- a/automation/README.md +++ b/automation/README.md @@ -844,7 +844,22 @@ https:///attributes/describeTypes Depending on the headers passed the returned data will be a JSON object or an XML, with 3 main sections: types, categories, category\_type\_mappings. - +## Objects management +### POST /objects/delete/[object_id]/[hard_delete] +#### Description +Delete an object. +#### URL Arguments +- object_id : mandatory +- hard_delete : if set to 1 or true, the object will be hard deleted. Defaults to false. +#### Example +~~~ +curl \ + -d '{}' \ + -H "Authorization: YOUR API KEY" \ + -H "Accept: application/json" \ + -H "Content-type: application/json" \ + -X POST https://192.168.0.223/objects/delete/18732/1 +~~~ ## Server management