---
title: "Sleep endpoint"
method: PUT
path: "/dedicated/beta/endpoint/{endpoint_id}/sleep"
tags: ["Dedicated.Endpoint"]
---

# Sleep endpoint

`PUT /dedicated/beta/endpoint/{endpoint_id}/sleep`

## Request

- Base URL: `https://api.friendli.ai`
- URL: `https://api.friendli.ai/dedicated/beta/endpoint/{endpoint_id}/sleep`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/friendli/apis/friendli-suite-api-reference/docs/dedicated/beta/endpoint/:endpoint_id/sleep/put.ts> (a function with typed inputs; its response is checked against the schema)

Put a specific endpoint to sleep

## Path parameters

- `endpoint_id` string, required: The ID of the endpoint

## Headers

- `X-Friendli-Team` string, nullable: ID of team to run requests as (optional parameter).

## Response `200`

Successfully requested to put the endpoint to sleep.

- DedicatedEndpointStatus: Dedicated endpoint status.
  - `status` 'UNKNOWN' | 'INITIALIZING' | 'RUNNING' | 'UPDATING' | 'SLEEPING' | 'AWAKING' | 'FAILED' | 'STOPPING' | 'TERMINATING' | 'TERMINATED' | 'READY', required: Status of inference deployment.
  - `errorCode` 'WORKLOAD_INIT_UNKNOWN_ERROR' | 'WORKLOAD_INIT_SETTINGS_ERROR' | 'WORKLOAD_INIT_GRPC_ERROR' | 'WORKLOAD_INIT_MANIFEST_NOT_FOUND_ERROR' | 'WORKLOAD_INIT_MANIFEST_TYPE_ERROR' | 'WORKLOAD_INIT_DOWNLOAD_ERROR' | 'WORKLOAD_INIT_INVALID_TOKEN_ERROR' | 'WORKLOAD_INIT_CANNOT_ACCESS_REPO_ERROR' | 'WORKLOAD_INIT_HF_WANDB_API_ERROR' | 'WORKLOAD_INIT_INSUFFICIENT_DISK_ERROR' | 'INFERENCE_ENGINE_UNKNOWN_ERROR' | 'INFERENCE_ENGINE_INVALID_ARGUMENT_ERROR' | 'INFERENCE_ENGINE_MEMORY_ERROR' | 'INFERENCE_ENGINE_METERING_CLIENT_CONFIG_ERROR': ErrorCode type.
  - `createdAt` string, date-time, required: When the endpoint was created.
  - `updatedAt` string, date-time, nullable: When the endpoint was last updated.
  - `phase` 'REQUESTING_VIRTUAL_MACHINE' | 'DOWNLOADING_MODEL' | 'ENGINE_INITIALIZING', nullable: The current phase of the endpoint.

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/friendli/apis/friendli-suite-api-reference.md) - [All operations](https://skmtc.dev/friendli/apis/friendli-suite-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/friendli/apis/friendli-suite-api-reference/revisions/38fb43993a11?raw)
