---
title: "Change Collection Environment"
method: PATCH
path: "/v2/collections/{collection_name}/environment"
tags: ["collections"]
---

# Change Collection Environment

`PATCH /v2/collections/{collection_name}/environment`

Move a collection between environments without reindexing.

## Path parameters

- `collection_name` string, required

## Request body

- ChangeEnvironmentRequest
  - `new_environment` 'development' | 'staging' | 'production', required

## Response `200`

Successful Response

- ChangeEnvironmentResponse
  - `collection_name` string, required
  - `files_moved` integer, required
  - `message` string, required
  - `new_environment` string, required
  - `previous_environment` string, required
  - `success` boolean, required

---

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