diff --git a/hrflow/hrflow/job/storing.py b/hrflow/hrflow/job/storing.py index 272ae62..405b050 100644 --- a/hrflow/hrflow/job/storing.py +++ b/hrflow/hrflow/job/storing.py @@ -168,7 +168,7 @@ def get(self, board_key, key=None, reference=None): response = self.client.get("job/indexing", query_params) return validate_response(response) - def archive(self, board_key, key=None, reference=None, is_archive=1): + def archive(self, board_key, key=None, reference=None): """ This method allows to archive (is_archive=1) or unarchive (is_archive=0) a job in HrFlow.ai. @@ -182,16 +182,13 @@ def archive(self, board_key, key=None, reference=None, is_archive=1): job identifier (key) reference: job identifier (reference) - is_archive: - default = 1 - {0, 1} to indicate archive/unarchive action Returns Archive/unarchive job response """ payload = format_item_payload("job", board_key, key, reference) - payload["is_archive"] = is_archive + payload["is_archive"] = 1 response = self.client.patch("job/indexing/archive", json=payload) return validate_response(response) diff --git a/hrflow/hrflow/profile/storing.py b/hrflow/hrflow/profile/storing.py index ca9f405..48c7e92 100644 --- a/hrflow/hrflow/profile/storing.py +++ b/hrflow/hrflow/profile/storing.py @@ -218,7 +218,7 @@ def get(self, source_key, key=None, reference=None): response = self.client.get("profile/indexing", query_params) return validate_response(response) - def archive(self, source_key, key=None, reference=None, is_archive=1, email=None): + def archive(self, source_key, key=None, reference=None, email=None): """ This method allows to archive (is_archive=1) or unarchive (is_archive=0) a profile in HrFlow.ai. @@ -232,9 +232,6 @@ def archive(self, source_key, key=None, reference=None, is_archive=1, email=None profile identifier (key) reference: profile identifier (reference) - is_archive: - default = 1 - {0, 1} to indicate archive/unarchive action email: profile_email @@ -244,7 +241,7 @@ def archive(self, source_key, key=None, reference=None, is_archive=1, email=None """ payload = format_item_payload("profile", source_key, key, reference, email) - payload["is_archive"] = is_archive + payload["is_archive"] = 1 response = self.client.patch("profile/indexing/archive", json=payload) return validate_response(response)