---
title: "Create an environment variable"
method: POST
path: "/branches/{branch_id}/env_vars"
tags: ["Management"]
---

# Create an environment variable

`POST /branches/{branch_id}/env_vars`

Create a new environment variable

## Path parameters

- `branch_id` integer, required

## Request body

- EnvVar
  - `name` string, required
  - `value` string, required

## Response `201`

Successfully created run

---

[API](https://skmtc.net/kraken-ci/apis/server-api.md) · [All operations](https://skmtc.net/kraken-ci/apis/server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kraken-ci/server-api/versions/1f2ae877f985/schema)
