mention add Attributes

no idea why that has never been documented.
pull/97/head
Alexander J 2018-02-26 12:44:04 +01:00 committed by GitHub
parent d43734373f
commit b412cd71f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -55,7 +55,8 @@ By appending .json or .xml the content type can also be set without the need for
PyMISP is a Python library to access MISP platforms via their REST API.
PyMISP allows you to fetch events, add or update events/attributes, add or update samples or search for attributes.
PyMISP allows you to fetch events, add or update events/
utes, add or update samples or search for attributes.
[PyMISP is available](https://github.com/MISP/PyMISP) including a documentation with various examples.
@ -508,6 +509,20 @@ curl --header "Authorization: a4PLf8QICdDdOmFjwdtSYqkCqn9CvN0VQt7mpUUf " --heade
## Attribute management
### POST /attributes/add/
Adds an Attribute to an event
#### URL Arguments
- event id
#### Output
#### Example
~~~~
curl --header "Authorization: a4PLf8QICdDdOmFjwdtSYqkCqn9CvN0VQt7mpUUf " --header "Accept: application/json" --header "Content-Type: application/json" -d "{"event_id":"3542","value":"1.2.3.4","category":"Network activity","type":"ip-dst"}" http://10.50.13.60/attributes/add/3542
~~~~
### GET /attributes