---
title: "Update connection variables"
method: POST
path: "/v1/integrations/variables/connections/{connectionId}"
tags: ["Integrations"]
---

# Update connection variables

`POST /v1/integrations/variables/connections/{connectionId}`

Update connection variables in Comp AI. Connect vendor systems, configure OAuth apps, run compliance checks, sync employees, manage variables, and collect automated evidence.

## Path parameters

- `connectionId` string, required

## Request body

- SaveVariablesDto
  - `organizationId` string — Auto-resolved from your API key / session. You can omit this; it is ignored by the server.
  - `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.

## Response `201`

---

[API](https://skmtc.net/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.net/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/versions/726b9523fb22/schema)
