Syncs
Syncs
Set delete protection of an app
POST
Turn delete protection on or off for one app of the sync. With it on, a record deleted in the other app is kept in this app. Turning it off releases the deletes held back so far.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace the resources belong to
base_id*stringThe sync (a sync is called a base in these paths)
Format
uuidapp_id*stringOne of the two apps of the sync, by its app_id (read it from the sync)
region*stringData region of the sync
Value in
"besg""usnv"The setting to apply
application/json- body
Turn delete protection on or off for an app
action*stringON keeps deletes from reaching the app, OFF lets them through again
Value in
"ON""OFF"Delete protection set
application/json- response
The app whose delete protection was set
msg*stringSuccessfully Toggled Delete Protection for app
app_id*stringThe app
curl -X POST 'https://api.stacksync.com/v1/workspaces/0/bases/497f6eca-6276-4993-bfeb-53cbbbba6f08/apps/string/delete-protection?region=besg' \ -H 'Content-Type: application/json' \ -d '{ "action": "ON"}'{ "msg": "Successfully Toggled Delete Protection for app", "app_id": "b71d04e5"}