---
title: "Update Environment"
method: PATCH
path: "/api/v1/dbt/cloud/environments/{environment_id}"
tags: ["DBT_CLOUD", "dbt_cloud"]
deprecated: true
---

# Update Environment

`PATCH /api/v1/dbt/cloud/environments/{environment_id}`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/api/v1/dbt/cloud/environments/{environment_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

> **Deprecated.**

Enable or disable sync for a dbt Cloud environment.

## Path parameters

- `environment_id` integer, required

## Request body

- DbtCloudEnvironmentUpdateRequest: Request to update a dbt Cloud environment.
  - `is_enabled` boolean, required: Enable/disable sync for this environment

## Response `200`

Successful Response

- DbtCloudEnvironmentResponse: dbt Cloud environment information.
  - `id` integer, required
  - `external_environment_id` string, required
  - `environment_name` string, nullable, required
  - `environment_type` string, nullable, required
  - `dbt_core_integration_environment_id` integer, required
  - `is_enabled` boolean, required
  - `last_processed_run_finished_at` string, date-time, nullable, required
  - `created_at` string, date-time, required
  - `last_modified_at` string, date-time, required
  - `processed_runs_count` integer, nullable

## Other responses

- `400`: Bad request
- `403`: Forbidden
- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
