---
title: "POST /nodes/{id}/update"
method: POST
path: "/nodes/{id}/update"
---

# POST /nodes/{id}/update

`POST /nodes/{id}/update`

Update a node

## Path parameters

- `id` string, required

## Query parameters

- `version` integer, required

## Request body

- NodeSpec
  - `Name` string — Name for the node.
  - `Labels` object — User-defined key/value metadata.
  - `Role` 'worker' | 'manager' — Role of the node.
  - `Availability` 'active' | 'pause' | 'drain' — Availability of the node.

## Response `204`

There is no content to send for this request, but the headers may be useful.

---

[API](https://skmtc.net/hexlet/apis/docker-engine-api.md) · [All operations](https://skmtc.net/hexlet/apis/docker-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexlet/docker-engine-api/versions/7dbd508c79cf/schema)
