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

Syncs

Switch a sync on or off

POST
/v1/workspaces/{workspace_id}/bases/{base_id}/switch

Start or pause a sync. The sync answers in state processing while it starts or stops; read its status to follow. A sync switched off can be switched on again only after a short wait, which the error names in seconds.

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 the resources belong to

base_id*string

The sync (a sync is called a base in these paths)

Formatuuid

Query Parameters

region*string

Data region of the sync (its presence is checked; the value is used as given)

Value in"besg""usnv"

Request Body

The switch to apply

application/json
  1. body

Switch the sync on or off

switch_mode*string

ON to start syncing, OFF to pause

Value in"ON""OFF"

Response Body

The sync after the switch

application/json
  1. response

The sync after the switch

data*

The sync after the switch

Switch a sync on or off
curl -X POST 'https://api.stacksync.com/v1/workspaces/0/bases/497f6eca-6276-4993-bfeb-53cbbbba6f08/switch?region=besg' \  -H 'Content-Type: application/json' \  -d '{  "switch_mode": "ON"}'
{  "data": {    "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",    "switch_mode": "ON",    "base_status": "processing"  }}