v1

latestSwagger 2.02026-07-17107114423.2 KB
Node

Update a node

post/nodes/{id}/update

Path parameters

idstring required

The ID of the node

Query parameters

versioninteger required

The version number of the node object being updated. This is required to avoid conflicting writes.

Request body

Namestring

Name for the node.

Labelsobject

User-defined key/value metadata.

Role'worker' | 'manager'

Role of the node.

Availability'active' | 'pause' | 'drain'

Availability of the node.

Example request

{
  "Availability": "active",
  "Name": "node-name",
  "Role": "manager",
  "Labels": {
    "foo": "bar"
  }
}

Response

no error