---
title: "Update Envs (Bulk)"
method: PATCH
path: "/services/{uuid}/envs/bulk"
tags: ["Services"]
---

# Update Envs (Bulk)

`PATCH /services/{uuid}/envs/bulk`

Update multiple envs by service UUID.

## Path parameters

- `uuid` string, required

## Request body

- object
  - `data` object[], required
    - `key` string — The key of the environment variable.
    - `value` string — The value of the environment variable.
    - `is_preview` boolean — The flag to indicate if the environment variable is used in preview deployments.
    - `is_literal` boolean — The flag to indicate if the environment variable is a literal, nothing espaced.
    - `is_multiline` boolean — The flag to indicate if the environment variable is multiline.
    - `is_shown_once` boolean — The flag to indicate if the environment variable's value is shown on the UI.

## Response `201`

Environment variables updated.

- EnvironmentVariable[]
  - `id` integer
  - `uuid` string
  - `resourceable_type` string
  - `resourceable_id` integer
  - `is_literal` boolean
  - `is_multiline` boolean
  - `is_preview` boolean
  - `is_runtime` boolean
  - `is_buildtime` boolean
  - `is_shared` boolean
  - `is_shown_once` boolean
  - `key` string
  - `value` string
  - `real_value` string
  - `comment` string, nullable
  - `version` string
  - `created_at` string
  - `updated_at` string

## Other responses

- `400` — Invalid token.
- `401` — Unauthenticated.
- `404` — Resource not found.
- `422` — Validation error.

---

[API](https://skmtc.net/coollabsio/apis/coolify.md) · [All operations](https://skmtc.net/coollabsio/apis/coolify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coollabsio/coolify/versions/08be5dc8e729/schema)
