From b412cd71f2779b5615c47898eb9a03c864957b7a Mon Sep 17 00:00:00 2001 From: Alexander J Date: Mon, 26 Feb 2018 12:44:04 +0100 Subject: [PATCH] mention add Attributes no idea why that has never been documented. --- automation/README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/automation/README.md b/automation/README.md index 5c44bdf..c2c65cf 100644 --- a/automation/README.md +++ b/automation/README.md @@ -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