---
title: "Undrain (reactivate) a node so it can accept new deployments again. Only works for nodes in \"draining\" or \"drained\" status."
method: DELETE
path: "/internal/nodes/{node_id}/drain"
tags: ["Nodes"]
---

# Undrain (reactivate) a node so it can accept new deployments again. Only works for nodes in "draining" or "drained" status.

`DELETE /internal/nodes/{node_id}/drain`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/internal/nodes/{node_id}/drain`
- Auth: HTTP bearer

## Path parameters

- `node_id` integer, required

## Response `200`

Node reactivated

- UndrainNodeResponse: Response after undraining (reactivating) a node.
  - `id` integer, required
  - `message` string, required
  - `name` string, required
  - `status` string, required

## Other responses

- `400`: Node not in drainable state
- `401`: Unauthorized
- `404`: Node not found

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/internal/nodes/:node_id/drain/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
