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

App triggers

Update an app trigger

PATCH
/v1/workspaces/{workspace_id}/app-triggers/{app_trigger_id}

Replace its tables (each with its record changes and filters), or switch it on or pause it. The target and the connection stay. Only the fields sent change.

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.

app_trigger_id*string

The app trigger.

Formatuuid

Query Parameters

region*Regions

Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them

Value in"besg""usnv"

Request Body

application/json
  1. body
tables?array<>|

Replaces every table

Defaultnull
status?|

on runs the target on changes, paused stops it

Defaultnull
validate_only?Validate Only

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

Defaultfalse

Response Body

OK

application/json
  1. response
app_trigger_id*App Trigger Id
target*

What runs on each change

connection_id*Connection Id

The connection whose app is watched

tables*array<>

One entry per trigger: the table, its record changes, filters

status*AppTriggerStatus
Value in"on""paused"
region*Regions
Value in"besg""usnv"
Update an app trigger
curl -X PATCH 'https://api.stacksync.com/v1/workspaces/0/app-triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08?region=besg' \  -H 'Content-Type: application/json' \  -d '{  "status": "on"}'
{  "app_trigger_id": "<app_trigger_id>",  "target": {    "type": "workflow",    "id": "<id>",    "step_id": "<step_id>",    "interface_id": "<interface_id>"  },  "connection_id": "<connection_id>",  "tables": [    {      "table_name": "<table_name>",      "operations": [        "created"      ],      "filters": {        "type": "group",        "operator": "and"      }    }  ],  "status": "on",  "region": "besg"}