TheHive 5 Node: "Bad request" error when trying to create a case from an alert

Describe the problem/error/question

Hi, I’m currently encountering an issue when using the TheHive 5 node in n8n to create a case from an alert. Whenever I trigger this operation, I receive the following error:

Bad request - please check your parameters  
You are not authorized to [Create Case from Alert] POST /api/v1/alert/{alertId}/case without application/json header

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.88.0
  • Database (default: SQLite): postgresql
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: ubuntu

Hey @h40huynh

It seems to node isn’t passing Content-Type: application/json header

You can check options see if this is avaible or maybe try with the http request node, and add the header manually.

Samuel