We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b58721c + d962da6 commit 43ca985Copy full SHA for 43ca985
1 file changed
jupiterone/client.py
@@ -540,11 +540,13 @@ def start_sync_job(
540
endpoint = "/persister/synchronization/jobs"
541
542
data = {
543
- "source": source,
544
- "integrationInstanceId": instance_id,
545
- "syncMode": sync_mode,
+ "source": source,
+ "syncMode": sync_mode
546
}
547
+ if instance_id is not None:
548
+ data["integrationInstanceId"] = instance_id
549
+
550
response = self._execute_syncapi_request(endpoint=endpoint, payload=data)
551
552
return response
0 commit comments