TheHive-Project / TheHive

TheHive: a Scalable, Open Source and Free Security Incident Response Platform
https://thehive-project.org
GNU Affero General Public License v3.0
3.45k stars 626 forks source link

[Question] remove a single tag from a custom taxonomy #2491

Open fake991 opened 3 months ago

fake991 commented 3 months ago

Hi,

I have created a custom taxonomy and used it to tag several cases. I would like to remove a single tag as I have replaced it with a new one. I don't want to delete the whole taxonomy as I would lose all the tags that were in the old cases.

Example:

I want to remove from my taxonomy the entry containing "to_be_removed" in the position 0

{ "namespace":"taxonomy_final", "description":"Custom Taxonomy", "version":2, "expanded":"Custom Taxonomy", "predicates":[ { "value":"predicate_value", "expanded":"expanded_value", "description":"descr" } ], "values":[ { "predicate":"predicate_value", "entry":[ { "value":"to_be_removed", "expanded":"to_be_removed", "description":"to_be_removed" }, { "value":"new_tag", "expanded":"new_tag", "description":"new_tag" } ] } }