TheHive4py
TheHive4py copied to clipboard
Close the Case by Responder
Request Type
Bug
Work Environment
| Question | Answer |
|---|---|
| OS version (server) | Ubuntu |
| OS version (client) | Ubuntu |
| TheHive4py version | 1.8.1 |
Problem Description
I trying to Close the Case by Responder. To make it, I use the function update_case() from thehive4py package. To Close the Case I update the following fields:
- status
- resolutionStatus
- impactStatus
- summary
- endDate
All fields are updatable, but field 'status' is not.
Steps to Reproduce
- Create the Responder to Close the Case.
- Update the field 'status' with the following string: 'Resolved'.
- Get the ERROR:
{
"type": "AttributeCheckingError",
"message": "[Invalid format for status: FAny(List(Resolved)), expected org.thp.thehive.models.CaseStatus.Value (Duplicated,Resolved,Open)]",
"errors": [
{
"name": "status",
"format": "org.thp.thehive.models.CaseStatus.Value",
"acceptedInput": [
"Duplicated",
"Resolved",
"Open"
],
"field": "FAny(List(Resolved))",
"type": "InvalidFormatAttributeError"
}
]
}
Complementary information
My Responder:

Error I get:
