Skip to main content
POST
/
v1
/
integrations
/
variables
/
connections
/
{connectionId}
Update connection variables
curl --request POST \
  --url https://api.trycomp.ai/v1/integrations/variables/connections/{connectionId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "variables": {
    "scan-interval-hours": 24,
    "enabled-regions": [
      "us-east-1",
      "us-west-2"
    ],
    "strict-mode": true
  }
}
'

Authorizations

X-API-Key
string
header
required

API key for authentication

Path Parameters

connectionId
string
required

Body

application/json
variables
object
required

Map of variable id → value to persist for this connection. Values can be string, number, boolean, or string[] (the shape is provider-defined — call get-connection-variables to see what each connection accepts). Pass only the variables you want to set; existing ones not included are left untouched.

Example:
{
"scan-interval-hours": 24,
"enabled-regions": ["us-east-1", "us-west-2"],
"strict-mode": true
}
organizationId
string

Auto-resolved from your API key / session. You can omit this; it is ignored by the server.

Response

201 - undefined