---
title: "Enable compute environment"
method: POST
path: "/compute-envs/{computeEnvId}/enable"
tags: ["compute-envs"]
---

# Enable compute environment

`POST /compute-envs/{computeEnvId}/enable`

Enables the compute environment identified by the given `computeEnvId`. An enabled compute environment can be used to launch workflows.

## Path parameters

- `computeEnvId` string, required

## Query parameters

- `workspaceId` integer

## Request body

- EmptyBodyRequest

## Response `204`

OK - No content

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/13316c9fe5ff/schema)
