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.

Response

Successful Response
sync_idstringOptional
collection_namestringOptional
bucketstringOptional
prefixstringOptional
regionstringOptional
storage_typeenumOptional
The sync's cloud storage type.
auth_methodenumOptional

‘iam_role’ for assume-role syncs, ‘access_key’ for access-key syncs.

endpoint_urlstring or nullOptional

S3-compatible endpoint URL (access-key syncs on non-AWS providers); null for AWS S3.

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

Event-webhook subscribe URL (only surfaced by the webhooks 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