v5

latestOpenAPI 3.1.02026-08-025631,1012.8 MB
Bucket Syncs

Update Sync Configuration

Update a sync configuration.

patch/v1/buckets/{bucket_id}/syncs/{sync_config_id}

Path parameters

bucket_idstring required
sync_config_idstring required

Request body

descriptionstring nullable

Optional human-readable description of the sync configuration. NOT REQUIRED. Used for documentation and UI display. Maximum 500 characters.

metadataobject nullable

Optional custom metadata to replace existing metadata. NOT REQUIRED. Completely replaces existing metadata (not merged). Use for tagging, categorization, or custom attributes. Maximum 50 keys, values must be JSON-serializable.

status'PENDING' | 'QUEUED' | 'IN_PROGRESS' | 'PROCESSING' | 'COMPLETED' | 'COMPLETED_WITH_ERRORS' | 'FAILED' | 'CANCELED' | 'INTERRUPTED' | 'UNKNOWN' | 'SKIPPED' | 'DRAFT' | 'ACTIVE' | 'ARCHIVED' | 'SUSPENDED'

Enumeration of task statuses for tracking asynchronous operations.

Task statuses indicate the current state of asynchronous operations like batch processing, object ingestion, clustering, and taxonomy execution.

Status Categories: Operation Statuses: Track progress of async operations Lifecycle Statuses: Track entity state (buckets, collections, namespaces)

Values: PENDING: Task is queued but has not started processing yet IN_PROGRESS: Task is currently being executed PROCESSING: Task is actively processing data (similar to IN_PROGRESS) COMPLETED: Task finished successfully with no errors COMPLETED_WITH_ERRORS: Task finished but some items failed (partial success) FAILED: Task encountered an error and could not complete CANCELED: Task was manually canceled by a user or system UNKNOWN: Task status could not be determined SKIPPED: Task was intentionally skipped DRAFT: Task is in draft state and not yet submitted

ACTIVE: Entity is active and operational (for buckets, collections, etc.)
ARCHIVED: Entity has been archived
SUSPENDED: Entity has been temporarily suspended

Terminal Statuses: COMPLETED, COMPLETED_WITH_ERRORS, FAILED, CANCELED are terminal statuses. Once a task reaches these states, it will not transition to another state.

Partial Success Handling: COMPLETED_WITH_ERRORS indicates that the operation completed but some documents/items failed. The task result includes: - List of successful items - List of failed items with error details - Success rate percentage This allows clients to handle partial success scenarios appropriately.

Polling Guidance: - Poll tasks in PENDING, QUEUED, IN_PROGRESS, or PROCESSING states - Stop polling when task reaches COMPLETED, COMPLETED_WITH_ERRORS, FAILED, or CANCELED - Use exponential backoff (1s → 30s) when polling

is_activeboolean nullable

Optional flag to enable or disable the sync configuration. NOT REQUIRED. When False, sync will not process new files. Prefer using the /pause and /resume endpoints for clarity. Changes take effect immediately.

polling_interval_secondsinteger nullable

Optional new polling interval in seconds. NOT REQUIRED. Must be between 30 and 86400 seconds if provided. Only applies to 'continuous' and 'scheduled' sync modes. Lower values increase responsiveness but API usage.

batch_sizeinteger nullable

Optional new batch size for file processing. NOT REQUIRED. Must be between 1 and 100 if provided. Larger batches improve throughput but use more memory. Changes apply to subsequent batches only.

skip_batch_submissionboolean nullable

If True, sync objects to the bucket without creating or submitting batches for collection processing. Objects are created in the bucket but no tier processing is triggered. NOT REQUIRED. When omitted, existing value is preserved.

max_objects_per_runinteger nullable

Hard cap on objects processed per sync run. NOT REQUIRED. When omitted, existing value is preserved. Use to limit runaway syncs or control ingestion volume.

provider_filtersobject nullable

Provider-specific pre-filters pushed down to the storage API call. NOT REQUIRED. Completely replaces existing provider_filters (not merged). Each provider defines its own filter schema. Examples: - Iconik: {'collection_ids': [...], 'media_type': 'video,image', 'path_patterns': ['/Footage/']} - Google Drive: {'shared_drive_id': '0AH-Xabc123'} - S3: {'prefix': 'videos/'}

Example request

{
  "description": "Pause sync temporarily",
  "is_active": false
}

Response

Successful Response

sync_config_idstring

Unique identifier for the sync configuration.

bucket_idstring required

Target bucket identifier (e.g. 'bkt_marketing_assets').

connection_idstring required

Storage connection identifier (e.g. 'conn_abc123').

internal_idstring required

Organization internal identifier (multi-tenancy scope).

namespace_idstring required

Namespace identifier owning the bucket.

source_pathstring required

Source path in the external storage provider. Format varies by provider: s3/tigris='bucket/prefix', google_drive='folder_id', sharepoint='/sites/Name/Documents', snowflake='DB.SCHEMA.TABLE'.

sync_mode'initial_only' | 'continuous'

Supported sync modes for external storage ingestion.

polling_interval_secondsinteger

Polling interval in seconds (continuous mode). Up to 86400 (1 day) — slow intervals are a legitimate ops throttle (e.g. deliberately deprioritizing freshness lanes during a backfill), and the read model must accept any value the platform itself may have stored.

batch_sizeinteger

Number of files processed per sync batch.

create_object_on_confirmboolean

Whether objects should be created immediately after confirmation.

skip_duplicatesboolean

Skip files whose hashes already exist in the bucket.

skip_batch_submissionboolean

Sync-only mode: download and store files in the bucket without running them through the collection processing pipeline. Set to True during initial bulk ingestion, then flip to False to trigger processing once all files are synced.

status'PENDING' | 'QUEUED' | 'IN_PROGRESS' | 'PROCESSING' | 'COMPLETED' | 'COMPLETED_WITH_ERRORS' | 'FAILED' | 'CANCELED' | 'INTERRUPTED' | 'UNKNOWN' | 'SKIPPED' | 'DRAFT' | 'ACTIVE' | 'ARCHIVED' | 'SUSPENDED'

Enumeration of task statuses for tracking asynchronous operations.

Task statuses indicate the current state of asynchronous operations like batch processing, object ingestion, clustering, and taxonomy execution.

Status Categories: Operation Statuses: Track progress of async operations Lifecycle Statuses: Track entity state (buckets, collections, namespaces)

Values: PENDING: Task is queued but has not started processing yet IN_PROGRESS: Task is currently being executed PROCESSING: Task is actively processing data (similar to IN_PROGRESS) COMPLETED: Task finished successfully with no errors COMPLETED_WITH_ERRORS: Task finished but some items failed (partial success) FAILED: Task encountered an error and could not complete CANCELED: Task was manually canceled by a user or system UNKNOWN: Task status could not be determined SKIPPED: Task was intentionally skipped DRAFT: Task is in draft state and not yet submitted

ACTIVE: Entity is active and operational (for buckets, collections, etc.)
ARCHIVED: Entity has been archived
SUSPENDED: Entity has been temporarily suspended

Terminal Statuses: COMPLETED, COMPLETED_WITH_ERRORS, FAILED, CANCELED are terminal statuses. Once a task reaches these states, it will not transition to another state.

Partial Success Handling: COMPLETED_WITH_ERRORS indicates that the operation completed but some documents/items failed. The task result includes: - List of successful items - List of failed items with error details - Success rate percentage This allows clients to handle partial success scenarios appropriately.

Polling Guidance: - Poll tasks in PENDING, QUEUED, IN_PROGRESS, or PROCESSING states - Stop polling when task reaches COMPLETED, COMPLETED_WITH_ERRORS, FAILED, or CANCELED - Use exponential backoff (1s → 30s) when polling

is_activeboolean

Convenience flag used for filtering active syncs.

total_files_discoveredinteger

Cumulative count of files found in source across all runs.

total_files_syncedinteger

Cumulative count of successfully synced files.

total_files_failedinteger

Cumulative count of failed files (sent to DLQ after 3 retries).

total_bytes_syncedinteger

Cumulative bytes transferred across all runs.

created_atstring date-time

When sync configuration was created.

updated_atstring date-time

Last modification timestamp.

last_sync_atstring date-time nullable

When last successful sync completed. Used for incremental syncs.

per_shard_last_sync_atobject

Per-shard last-sync timestamps keyed by shard value (e.g. collection_id). When a new shard is added, its absence here forces a full scan even if the global last_sync_at is set.

next_sync_atstring date-time nullable

Scheduled time for next sync (continuous/scheduled modes).

created_by_user_idstring required

User identifier that created the sync configuration.

last_errorstring nullable

Most recent error message if sync attempts failed.

consecutive_failuresinteger
provider_filtersobject

Provider-specific pre-filters pushed down to the API call. The sync engine passes these to iter_objects() without interpretation. Each provider defines its own schema. Applied BEFORE file_filters. Examples: Iconik {'collection_ids': [...]}, Google Drive {'shared_drive_id': '...'}

source_typestring nullable

Storage provider type for API progress views (for example: s3, google_drive, iconik).

metadataobject

Arbitrary metadata supplied by the user.

locked_by_worker_idstring nullable

Worker ID that currently holds the lock for this sync

locked_atstring date-time nullable

Timestamp when lock was acquired

lock_expires_atstring date-time nullable

Timestamp when lock expires (for stale lock recovery)

pending_full_syncboolean

A full sweep was requested (trigger?full_sync=true) while a run held the lock. The finishing run dispatches it automatically on lock release.

pausedboolean

Whether sync is currently paused (user-controlled)

pause_reasonstring nullable

Reason for pause

paused_atstring date-time nullable

Timestamp when paused

paused_by_user_idstring nullable

User who paused the sync

max_objects_per_runinteger

Hard cap on objects per sync run (prevents runaway syncs)

max_batch_chunk_sizeinteger

Maximum objects per batch chunk

batch_chunk_sizeinteger

Number of objects per batch chunk (for concurrent processing)

current_sync_run_idstring nullable

UUID for current/last sync run

sync_run_counterinteger

Increments on each sync execution

batch_idsstring[]

List of batch IDs created by this sync

task_idsstring[]

List of task IDs for batches

batches_createdinteger

Total number of batches created

resume_enabledboolean

Whether resuming partial runs is enabled

resume_cursorstring nullable

Last page/cursor processed (for paginated APIs like Google Drive)

resume_last_primary_keystring nullable

Last primary key processed (for database syncs with stable ordering)

resume_objects_processedinteger

Count of objects processed in current/last run

resume_checkpoint_frequencyinteger

How often to checkpoint (in objects). Default: every 1000 objects

current_cursorstring nullable

Convenience mirror of the current resume cursor for API progress views.

sync_checkpointsobject

Per-(config, shard) high-water checkpoints keyed by shard key (e.g. collection_id for parallel fan-outs, 'pages_N_M' for page-range shards, 'default' for unsharded runs). Each entry holds: pass_id (lexicographically-ordered pass marker), cursor (provider cursor, e.g. JSON-encoded Iconik search_after), objects_processed (forward-only progress guard), modified_since (incremental filter frozen at pass start), completed_at (set when the shard drained its source — the next cycle wraps around to a fresh full pass only after the polling cadence elapses), and updated_at. A NEW job resumes each shard from its checkpoint instead of re-walking from page 1 (2026-06-11 re-scan treadmill).

scheduleobject nullable

Derived scheduling summary: mode, interval, next run, and last successful run.

sync_progressobject

Derived progress summary for API observability.

lockedboolean required

Whether a worker currently holds this sync's run lock.