---
title: "Reinstalls the operating system on the specified compute node."
method: POST
path: "/pools/{poolId}/nodes/{nodeId}/reimage"
tags: ["ComputeNodes"]
---

# Reinstalls the operating system on the specified compute node.

`POST /pools/{poolId}/nodes/{nodeId}/reimage`

You can reinstall the operating system on a node only if it is in an idle or running state. This API can be invoked only on pools created with the cloud service configuration property.

## Path parameters

- `poolId` string, required
- `nodeId` string, required

## Query parameters

- `timeout` integer
- `api-version` string, required

## Headers

- `client-request-id` string, uuid
- `return-client-request-id` boolean
- `ocp-date` string, date-time-rfc1123

## Response `202`

The request to the Batch service was successful.

## Other responses

- `default` — The error from the Batch service.

---

[API](https://skmtc.net/azure/apis/batchservice-2.md) · [All operations](https://skmtc.net/azure/apis/batchservice-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/batchservice-2/versions/dff38446805d/schema)
