---
title: "Add Or Update Variables"
method: PUT
path: "/v1/accounts/{account_id}/environments/{environment_id}/variables"
tags: ["Variables"]
---

# Add Or Update Variables

`PUT /v1/accounts/{account_id}/environments/{environment_id}/variables`

## Request

- Base URL: `https://api.rivery.io`
- URL: `https://api.rivery.io/v1/accounts/{account_id}/environments/{environment_id}/variables`
- Auth: HTTP bearer

**Authorization scope:** `variables:edit` 
 
 **Add new variable or update existing one for environment**

## Path parameters

- `account_id` string, required
- `environment_id` string, required

## Request body

- AddOrPatchVariablesInput: Variables input
  - `variables` object, required

## Response `201`

Successful Response

- VariablesResponse: List of variables response
  - `variables` object, required

## Other responses

- `422`: Validation Error

## Changes

> 668 revisions in range; 2 not diffed.

- **2026-11-09** `75e8c5d8f575`: 1 info
  - api tag `MCP` removed
- **2026-10-24** `00b90942c8d6`: 1 info
  - endpoint added
- **2026-10-24** `0a8241f415c4`: 1 breaking
  - api path removed without deprecation
- **2026-08-06** `ddd6b1c27983`: 1 info
  - api tag `MCP` added

[Operation history](https://skmtc.dev/rivery/apis/boomi-data-integration-api/changes/v1/accounts/:account_id/environments/:environment_id/variables/put.md)

---

[API](https://skmtc.dev/rivery/apis/boomi-data-integration-api.md) - [All operations](https://skmtc.dev/rivery/apis/boomi-data-integration-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rivery/apis/boomi-data-integration-api/revisions/0eaf76fdd4e9?raw)
