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

Syncs

Set the rate limit of an app

POST
/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/rate-limit

Set the most requests Stacksync makes to one app of the sync per period. The sync may stay on. Leave rate limits at Stacksync's default unless the app asks for less.

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
app_id*string

One of the two apps of the sync, by its app_id (read it from the sync)

Query Parameters

region*string

Data region of the sync

Value in"besg""usnv"

Request Body

The rate limit

application/json
  1. body

The rate limit of an app; the sync may stay on

rate*integer

The number of requests allowed per period, 1 to 2147483647

Range1 <= value <= 2147483647
frequency?integer

The period of the rate in seconds: 1 (per second), 60, 3600 or 86400; per second when left out

Default1
Value in160360086400

Response Body

The rate limit stored

application/json
  1. response

The rate limit stored

data*

The most requests Stacksync makes to the app in a period

Set the rate limit of an app
curl -X POST 'https://api.stacksync.com/v1/workspaces/0/bases/497f6eca-6276-4993-bfeb-53cbbbba6f08/apps/string/rate-limit?region=besg' \  -H 'Content-Type: application/json' \  -d '{  "rate": 20,  "frequency": 1}'
{  "data": {    "rate": 20,    "frequency": 1  }}