See Stacksync in action with a solution architect. Book a demo ↗
Syncs

Syncs

Update sync settings

PATCH
/v1/workspaces/{workspace_id}/bases/{base_id}/settings

Sets the sync frequency: the longest a change may wait before it is synced (0 for real time).

Special Conditions: - 0 removes the stored delay (real time), so a sync set to 0 answers 0, as a sync never set does.

Authorization

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

base_id*string

The sync.

Formatuuid

Query Parameters

region*Regions

The region of the sync

Value in"besg""usnv"

Request Body

application/json
  1. body
max_records_sync_delay_in_seconds*Max Records Sync Delay In Seconds

The longest a change may wait before it is synced, in seconds; 0 syncs in real time

Range0 <= value

Response Body

OK

application/json
  1. response

PATCH /bases/<base_id>/settings

base_id*Base Id
settings*
Update sync settings
curl -X PATCH 'https://api.stacksync.com/v1/workspaces/0/bases/497f6eca-6276-4993-bfeb-53cbbbba6f08/settings?region=besg' \  -H 'Content-Type: application/json' \  -d '{  "max_records_sync_delay_in_seconds": 0}'
{  "base_id": "<base_id>",  "settings": {    "max_records_sync_delay_in_seconds": 0  }}