---
title: Node Operations
description: 'Node Operations endpoints: 1 operation.'
canonical: 'https://lightning.ai/docs/platform/cluster/api-reference/node-operations'
---
# Node Operations {#node-operations}

## Queue a node power operation {#queue-a-node-power-operation}

`POST /v1/fleets/{fleetId}/nodes/{nodeId}/power`

Queues a power transition on a node. Valid transitions depend on the node's current power state. Requires the Administrator role. Requests from Users are rejected with 403. Unknown reset types are rejected with 400.

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `nodeId` | path | string | Yes | Node identifier (from list nodes response) |
| `Idempotency-Key` | header | string | Yes | Unique key for idempotent retries. Required for power operations. Maximum length: 255. |

**Request body** (`application/json`, required)

[NodePowerOperation](/docs/platform/cluster/api-reference/schemas.md#nodepoweroperation)

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Idempotent replay — the operation already completed. The response body contains the terminal outcome. | [NodePowerOperationQueued](/docs/platform/cluster/api-reference/schemas.md#nodepoweroperationqueued) |
| `202` | Power operation accepted and queued. | [NodePowerOperationQueued](/docs/platform/cluster/api-reference/schemas.md#nodepoweroperationqueued) |
| `400` | Invalid request body or unknown resetType | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `403` | Authenticated but the caller does not have the Administrator role | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet or node not found, or the fleet has not been provisioned yet | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `409` | Requested transition conflicts with the node's current power state, or a request with the same Idempotency-Key is currently in progress | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `422` | Idempotency-Key already used with a different request body, method, path, or organization | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `423` | Another power operation is already in progress on this node | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `500` | Internal failure before the upstream call | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `502` | The node's power controller returned an error or could not be reached | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `503` | The operation was recorded but rejected immediately. The response body contains the failure record. Clients may retry with a new Idempotency-Key. | [NodePowerOperationQueued](/docs/platform/cluster/api-reference/schemas.md#nodepoweroperationqueued) |

**Example request**

```bash
curl -X POST "$API_URL/v1/fleets/$FLEET_ID/nodes/$NODE_ID/power" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"resetType":"ForceRestart"}'
```

---

**Navigation**

- Parent: [API reference](/docs/platform/cluster/api-reference.md)
