Update Sync

Update a sync’s prefix, glob filters, deletion policy, cadence, custom metadata, or status (pause/resume). Only provided fields change.

Path parameters

sync_idstringRequired
The sync id.

Headers

authorizationstring or nullOptional

Bearer {api_key}. Your Captain API key.

Request

This endpoint expects an object.
prefixstringOptional
New key prefix to scope the sync.
include_patternslist of stringsOptional
Replacement include glob patterns.
exclude_patternslist of stringsOptional
Replacement exclude glob patterns.
deletion_policyenumOptional

New deletion-propagation policy.

statusenumOptional

‘paused’ stops syncing without deleting the sync; ‘active’ resumes.

custom_metadatamap from strings to anyOptional
Replacement static metadata.
sync_interval_minutesinteger or nullOptional

New cadence in minutes. MINIMUM 5 (below 5 clamps to 5; >=5 honored exactly). null = manual. Read the sync back for the effective value.

account_keystring or nullOptional

Azure Blob syncs only: a new storage-account key (key1 or key2). Validated against the container before it replaces the stored key: the supported path for Azure key rotation. Rejected with 422 on non-Azure syncs. Never returned.

Response

Successful Response
sync_idstringOptional
collection_namestringOptional
bucketstringOptional
prefixstringOptional
regionstringOptional
storage_typeenumOptional

The sync’s cloud storage type. Returned by the list endpoint (GET /v2/syncs) only; other sync endpoints omit this field.

auth_methodenumOptional

How the sync authenticates to the bucket: ‘iam_role’ (AWS cross-account assume-role), ‘access_key’ (S3-compatible key pair), or ‘service_account’ (GCS service-account JSON).

account_namestring or nullOptional

Azure Blob syncs only: the storage account name. Null for other providers.

endpoint_urlstring or nullOptional

S3-compatible endpoint URL (access-key syncs on non-AWS providers); null for AWS S3. Returned by the list endpoint (GET /v2/syncs) only; other sync endpoints omit this field.

processing_typeenumOptional
include_patternslist of stringsOptional
exclude_patternslist of stringsOptional
deletion_policyenumOptional
statusenumOptional
secret_setbooleanOptional

True once an event-webhook secret has been minted.

sns_subscribe_urlstring or nullOptional

SNS subscribe URL; only surfaced by the subscribe-webhook endpoint.

last_backfill_job_idstring or nullOptional
last_reconcile_atstring or nullOptional
sync_interval_minutesinteger or nullOptional

Effective (already-clamped) cadence; null = manual.

next_sync_atinteger or nullOptional
Epoch ms of the next due scheduled reconcile.
sync_stateenum or nullOptional
last_sync_atinteger or nullOptional
last_sync_errorstring or nullOptional
created_atstringOptional
updated_atstring or nullOptional
© 2026 Captain