---
title: "Sleep Workspace"
method: POST
path: "/v1/workspaces/{workspaceId}/sleep"
tags: ["Replica"]
---

# Sleep Workspace

`POST /v1/workspaces/{workspaceId}/sleep`

Forces an active workspace in the authenticated organization to sleep, stopping compute charges. Slept workspaces can be woken later. A no-op for already-sleeping or archived workspaces; returns 409 for preparing or error workspaces.

## Path parameters

- `workspaceId` string, uuid, required

## Response `200`

Workspace slept

- SleepWorkspaceResponse
  - `success` boolean, required — Whether the sleep request was accepted

## Other responses

- `400` — Bad request - Missing or invalid parameters
- `401` — Unauthorized - Invalid or missing API key
- `404` — Resource not found
- `409` — Conflict - Resource already exists or operation conflicts with current state
- `500` — Internal server error

---

[API](https://skmtc.net/tryreplicas/apis/replica-api.md) · [All operations](https://skmtc.net/tryreplicas/apis/replica-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryreplicas/replica-api/versions/aa3b4c932f7a/schema)
