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

Syncs

Rename a sync

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

Change the name of a sync. The name must follow the name rule and be free in the workspace. Send validate_only: true to check the name without renaming.

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

Value in"besg""usnv"

Request Body

The new name

application/json
  1. body

The new name of the sync

base_name*string

The new name. 3 to 63 characters: unaccented letters (A-Z, a-z), numbers, underscores, dashes and spaces only; unique in the workspace

validate_only?boolean

Run every check of the write and answer without writing: a refused write answers the error it would answer

Defaultfalse

Response Body

The sync renamed

application/json
  1. response

The renamed sync

message*string

Base name updated successfully

base_id*string

The sync

Formatuuid
Rename a sync
curl -X POST 'https://api.stacksync.com/v1/workspaces/0/bases/497f6eca-6276-4993-bfeb-53cbbbba6f08/update?region=besg' \  -H 'Content-Type: application/json' \  -d '{  "base_name": "Salesforce accounts to Postgres - production"}'
{  "message": "Base name updated successfully",  "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01"}