mirror of https://github.com/MISP/misp-book
Merge pull request #237 from Wachizungu/add-objects-delete-to-automation
chg: [automation] add /objects/deletepull/239/head
commit
63ccba73a3
|
@ -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.
|
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
|
## Server management
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue