Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/api/alert/{}/createCase does not use caseTemplate #929

Closed
zpriddy opened this issue Mar 15, 2019 · 3 comments
Closed

/api/alert/{}/createCase does not use caseTemplate #929

zpriddy opened this issue Mar 15, 2019 · 3 comments
Assignees
Labels
Milestone

Comments

@zpriddy
Copy link

zpriddy commented Mar 15, 2019

Request Type

Bug

Work Environment

Question Answer
TheHive version / git hash 3.3.0-RC6

Problem Description

/api/alert/{}/createCase does not use caseTemplate from the alert and creates empty case

@bangejsans
Copy link

bangejsans commented May 8, 2019

Is there a workaround for this? It's hindering a lot of automation we want to use in our SOC using thehivehooks.

@nadouani
Copy link
Contributor

I confirm that the /api/alert/{}/createCase doesn't take into account the Alert.caseTemplate field. We will fix this

@nadouani
Copy link
Contributor

Actually, the API expects a JSON POST defining the caseTemplate which is something that the UI support, but not TheHive4py. The REST API supports it BTW just add a request body {"caseTemplate": "XXX"} to the API call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants