Skip to content

Commit 43ca985

Browse files
authored
Merge pull request #41 from CraigBryan/feat/fix_sync_api_job_creation
Allowed 'start_sync_job' to use an 'api' source
2 parents b58721c + d962da6 commit 43ca985

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jupiterone/client.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,13 @@ def start_sync_job(
540540
endpoint = "/persister/synchronization/jobs"
541541

542542
data = {
543-
"source": source,
544-
"integrationInstanceId": instance_id,
545-
"syncMode": sync_mode,
543+
"source": source,
544+
"syncMode": sync_mode
546545
}
547546

547+
if instance_id is not None:
548+
data["integrationInstanceId"] = instance_id
549+
548550
response = self._execute_syncapi_request(endpoint=endpoint, payload=data)
549551

550552
return response

0 commit comments

Comments
 (0)