@@ -218,7 +218,7 @@ def get(self, source_key, key=None, reference=None):
218218 response = self .client .get ("profile/indexing" , query_params )
219219 return validate_response (response )
220220
221- def archive (self , source_key , key = None , reference = None , is_archive = 1 , email = None ):
221+ def archive (self , source_key , key = None , reference = None , email = None ):
222222 """
223223 This method allows to archive (is_archive=1) or unarchive (is_archive=0) a
224224 profile in HrFlow.ai.
@@ -232,9 +232,6 @@ def archive(self, source_key, key=None, reference=None, is_archive=1, email=None
232232 profile identifier (key)
233233 reference: <string>
234234 profile identifier (reference)
235- is_archive: <integer>
236- default = 1
237- {0, 1} to indicate archive/unarchive action
238235 email: <string>
239236 profile_email
240237
@@ -244,7 +241,7 @@ def archive(self, source_key, key=None, reference=None, is_archive=1, email=None
244241 """
245242
246243 payload = format_item_payload ("profile" , source_key , key , reference , email )
247- payload ["is_archive" ] = is_archive
244+ payload ["is_archive" ] = 1
248245 response = self .client .patch ("profile/indexing/archive" , json = payload )
249246 return validate_response (response )
250247
0 commit comments