Skip to content

Commit 06156f8

Browse files
committed
PATCH sync jobs cannot target relationships.
1 parent ccd685d commit 06156f8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

examples/sync_job_workflow.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
1010
This is a standalone script that can be run independently to test
1111
the 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

1418
import 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",

jupiterone/client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)