---
title: "PUT /v1/projects/{projectOrProductUID}/environment_variables"
method: PUT
path: "/v1/projects/{projectOrProductUID}/environment_variables"
tags: ["project"]
---

# PUT /v1/projects/{projectOrProductUID}/environment_variables

`PUT /v1/projects/{projectOrProductUID}/environment_variables`

Set environment variables of a project

## Request body

- EnvironmentVariables
  - `environment_variable_notes` object — Optional per-variable annotations, keyed by variable name. Setting a key to an empty string removes its note. A 400 error is returned for any key that does not already exist as a stored variable and is not included in environment_variables in the same request.
  - `environment_variables` object, required

## Response `200`

The response body from an environment variables request.

- EnvironmentVariables
  - `environment_variable_notes` object — Optional per-variable annotations, keyed by variable name. Setting a key to an empty string removes its note. A 400 error is returned for any key that does not already exist as a stored variable and is not included in environment_variables in the same request.
  - `environment_variables` object, required

## Other responses

- `default` — The response body in case of an API error.

---

[API](https://skmtc.net/notefile/apis/notehub-api.md) · [All operations](https://skmtc.net/notefile/apis/notehub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/notefile/notehub-api/versions/9c5b2b63a991/schema)
