chg: [automation] add /objects/delete

pull/237/head
Jeroen Pinoy 2021-03-07 23:18:57 +01:00
parent ed7dfe613e
commit 9bfae0124b
No known key found for this signature in database
GPG Key ID: DF33A50B8E4EE081
1 changed files with 16 additions and 1 deletions

View File

@ -844,7 +844,22 @@ https://<misp url>/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