Threat Model Entity Tags in Bulk
ThreatStream enables you to manage tags of threat model entities in bulk. You can use the information in this section to add and delete tags associated with sets of the following entities: Actors, Attack Patterns, Campaigns, Incidents, Malware, Signatures, Threat Bulletins, TTPs, and Vulnerabilities.
Request
/api/v1/<entity_type>/bulk_tagging/
where <entity_type> is the type of threat model entity on which you are adding the tag (actor, attackpattern, campaign, incident, malware, signature, tipreport, ttp, or vulnerability.)
HTTP Method: POST
Attributes
| Attribute | Description |
|---|---|
| ids | Unique IDs of the threat model entities to which you are adding tags. |
| remove_tags |
Tags must be specified as follows:
By default, you can delete up to 25 tags in bulk from a threat model entity. |
| tags |
Tags that will be applied to the specified threat model entities. Tags must be specified as follows:
Tag Attributes:
By default, you can add up to 25 tags in bulk to a threat model entity. |
Example
To add tags private_tag1, private_tag2, and public_tag to the set of Actors whose IDs are 655, 2784, 2785 and to remove tag4 from these Actors:
curl -X POST 'https://api.threatstream.com/api/v1/actor/bulk_tagging/' -d '{"ids": [655, 2784, 2785], "tags": [{"name":"private_tag1", "tlp":"red"}, {"name":"public_tag", "tlp":"white"}, {"name":"private_tag3", "tlp":"red"}], "remove_tags": [{"name":"tag4"}]}' -H 'content-type: application/json' -H 'Authorization:apikey <username>:<apikey>'