Skip to content

Instantly share code, notes, and snippets.

@bromiley
Last active March 15, 2019 15:22
Show Gist options
  • Save bromiley/769bff696ff7fce6fe56e609c544130e to your computer and use it in GitHub Desktop.
Save bromiley/769bff696ff7fce6fe56e609c544130e to your computer and use it in GitHub Desktop.
Creating a TheHive task using Python
with open(sys.argv[1]) as f:
for line in f:
j = json.loads(line)
task = CaseTask(
title = j['title_data'],
description = j['description_data'],
group = j['group_data']
)
api.create_case_task(<case_id>, task)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment