File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 99
1010This is a standalone script that can be run independently to test
1111the sync job functionality.
12+
13+ Note: This example uses PATCH sync mode, which is suitable for entity-only
14+ uploads. If you need to upload relationships, use DIFF sync mode instead.
15+ See: https://docs.jupiterone.io/reference/pipeline-upgrade#patch-sync-jobs-cannot-target-relationships
1216"""
1317
1418import os
@@ -46,6 +50,7 @@ def main():
4650 try :
4751 # Step 1: Start sync job
4852 print ("1. Starting synchronization job..." )
53+ print (" Note: Using PATCH mode (entities only). Use DIFF mode if uploading relationships." )
4954 sync_job = j1 .start_sync_job (
5055 instance_id = instance_id ,
5156 sync_mode = "PATCH" ,
Original file line number Diff line number Diff line change @@ -664,6 +664,13 @@ def start_sync_job(
664664 instance_id (str): The "integrationInstanceId" request param for synchronization job
665665 sync_mode (str): The "syncMode" request body property for synchronization job. "DIFF" or "PATCH"
666666 source (str): The "source" request body property for synchronization job. "api" or "integration-external"
667+
668+ Note:
669+ IMPORTANT: PATCH sync jobs cannot target relationships. If your sync job involves creating
670+ or updating relationships, you must use "DIFF" sync_mode instead of "PATCH". This is due
671+ to the JupiterOne data pipeline upgrade.
672+
673+ For more information, see: https://docs.jupiterone.io/reference/pipeline-upgrade#patch-sync-jobs-cannot-target-relationships
667674 """
668675 endpoint = "/persister/synchronization/jobs"
669676
You can’t perform that action at this time.
0 commit comments