Merge pull request #237 from Wachizungu/add-objects-delete-to-automation

chg: [automation] add /objects/delete
pull/239/head
Alexandre Dulaunoy 2021-03-08 06:35:50 +01:00 committed by GitHub
commit 63ccba73a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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. 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