---
title: "Upsert Repo Env Var"
method: POST
path: "/v1/repos/{repo_id}/env-vars"
---

# Upsert Repo Env Var

`POST /v1/repos/{repo_id}/env-vars`

## Request

- Base URL: `https://api.tabtabtab.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tabtabtab.ai/v1/repos/{repo_id}/env-vars`
- Auth: none declared

## Path parameters

- `repo_id` string, required

## Request body

- EnvVarInput: A single env var the client captured from the user's repo.
  - `key` string, required
  - `sourcePath` string, required
  - `value` string, required
  - `isSecret` boolean, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tabtabtab/apis/tabtabtab-api.md) - [All operations](https://skmtc.dev/tabtabtab/apis/tabtabtab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tabtabtab/apis/tabtabtab-api/revisions/73961d1e6152?raw)
