Skip to content

Commit 1176e76

Browse files
committed
Update client.py
1 parent 99bb995 commit 1176e76

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

jupiterone/client.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,17 +500,20 @@ def fetch_all_entity_tags(self):
500500

501501
return return_list
502502

503-
def start_sync_job(self, instance_id: str = None):
503+
def start_sync_job(self, instance_id: str = None, sync_mode: str = None, source: str = None,):
504504
"""Start a synchronization job.
505505
506506
args:
507507
instance_id (str): The "integrationInstanceId" request param for synchronization job
508+
sync_mode (str): The "syncMode" request body property for synchronization job. "DIFF", "CREATE_OR_UPDATE", or "PATCH"
509+
source (str): The "source" request body property for synchronization job. "api" or "integration-external"
508510
"""
509511
endpoint = "/persister/synchronization/jobs"
510512

511513
data = {
512-
"source": "integration-managed",
513-
"integrationInstanceId": instance_id
514+
"source": source,
515+
"integrationInstanceId": instance_id,
516+
"syncMode": sync_mode
514517
}
515518

516519
response = self._execute_syncapi_request(endpoint=endpoint, payload=data)

0 commit comments

Comments
 (0)