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
}
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
variables: {
'scan-interval-hours': 24,
'enabled-regions': ['us-east-1', 'us-west-2'],
'strict-mode': true
}
})
};
fetch('https://api.trycomp.ai/v1/integrations/variables/connections/{connectionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/integrations/variables/connections/{connectionId}"
payload = { "variables": {
"scan-interval-hours": 24,
"enabled-regions": ["us-east-1", "us-west-2"],
"strict-mode": True
} }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Integrations
Update connection variables | Comp AI API
Update connection variables in Comp AI. Connect vendor systems, configure OAuth apps, run compliance checks, sync employees, manage variables, and collect.
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
}
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
variables: {
'scan-interval-hours': 24,
'enabled-regions': ['us-east-1', 'us-west-2'],
'strict-mode': true
}
})
};
fetch('https://api.trycomp.ai/v1/integrations/variables/connections/{connectionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/integrations/variables/connections/{connectionId}"
payload = { "variables": {
"scan-interval-hours": 24,
"enabled-regions": ["us-east-1", "us-west-2"],
"strict-mode": True
} }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Path Parameters
Body
application/json
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 }
Auto-resolved from your API key / session. You can omit this; it is ignored by the server.
Response
201 - undefined
Was this page helpful?

