From f278dc6877f5530d9cb7ad848a3c9a676064e244 Mon Sep 17 00:00:00 2001 From: Matthijs Vos Date: Tue, 12 May 2026 15:56:44 +0200 Subject: [PATCH] Add case template ID during add_case --- dfir_iris_client/case.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dfir_iris_client/case.py b/dfir_iris_client/case.py index 1cb2d66..93f7f37 100644 --- a/dfir_iris_client/case.py +++ b/dfir_iris_client/case.py @@ -84,7 +84,7 @@ def get_case(self, cid: int) -> ApiResponse: def add_case(self, case_name: str, case_description: str, case_customer: Union[str, int], case_classification: Union[str, int], soc_id: str, custom_attributes: dict = None, - create_customer=False) -> ApiResponse: + create_customer=False, case_template_id : str | None =None) -> ApiResponse: """Creates a new case. If create_customer is set to true and the customer doesn't exist, it is created. Otherwise an error is returned. @@ -100,6 +100,7 @@ def add_case(self, case_name: str, case_description: str, case_customer: Union[s soc_id: SOC Number custom_attributes: Custom attributes of the case create_customer: Set to true to create the customer is doesn't exists. (Default value = False) + case_template_id: The template ID of the case Returns: ApiResponse object @@ -147,7 +148,8 @@ def add_case(self, case_name: str, case_description: str, case_customer: Union[s "classification_id": case_classification, "case_soc_id": soc_id, "case_description": case_description, - "custom_attributes": custom_attributes + "custom_attributes": custom_attributes, + "case_template_id": case_template_id } resp = self._s.pi_post('manage/cases/add', data=body)