---
title: "Replace Device"
method: POST
path: "/zfs/pools/{guid}/replace-device"
tags: ["ZFS"]
---

# Replace Device

`POST /zfs/pools/{guid}/replace-device`

Replace a device in a ZFS pool

## Path parameters

- `guid` string, required

## Request body

- GithubComAlchemillahqSylveInternalInterfacesServicesZfsReplaceDevice
  - `new` string, required
  - `old` string, required

## Response `202`

Accepted

- GithubComAlchemillahqSylveInternalAPIResponseAny
  - `data` unknown
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

## Changes

- **2026-08-12** `9a5026bf9057` — 2 breaking, 4 info
  - added the new path request parameter `guid`
  - removed the success response with the status `200`
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
  - …2 more
- **2025-03-11** `2b736ca1b025` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/zfs/pools/:guid/replace-device/post.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/438105f28a33/schema)
