---
title: "UpdateProjectVariables updates variables for a project."
method: PUT
path: "/v1/orgs/{org}/projects/{project}/variables"
---

# UpdateProjectVariables updates variables for a project.

`PUT /v1/orgs/{org}/projects/{project}/variables`

## Path parameters

- `org` string, required
- `project` string, required

## Request body

- object
  - `environment` string — Environment to set the variables for. If empty, the variable(s) will be used as defaults for all environments.
  - `unsetVariables` string[] — Variables to delete.
  - `variables` object — New variable values. It is NOT NECESSARY to pass all variables, existing variables not included in the request will be left unchanged.

## Response `200`

A successful response.

- V1UpdateProjectVariablesResponse
  - `variables` V1ProjectVariable[] — Variables that were created or updated by the request.
    - `createdOn` string, date-time — Timestamp when the variable was created.
    - `environment` string — Environment the variable is set for. If empty, the variable is shared for all environments.
    - `id` string — Internal ID.
    - `name` string — Variable name (case insensitive).
    - `updatedByUserId` string — User ID that most recently updated the variable. May be empty.
    - `updatedOn` string, date-time — Timestamp when the variable was last updated.
    - `value` string — Variable value.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/rilldata/apis/rill-admin-api.md) · [All operations](https://skmtc.dev/rilldata/apis/rill-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rilldata/rill-admin-api/revisions/abe7a430f373/schema)
