---
title: "Migrate a slab"
method: POST
path: "/worker/slab/migrate"
---

# Migrate a slab

`POST /worker/slab/migrate`

Migrates a slab from one host to another.

## Request body

- Slab — A slab of data to migrate
  - `health` number, float
  - `encryptionKey` string — The encryption key used to encrypt the slab's shards
  - `minShards` integer — The number of data shards the slab is split into

## Response `200`

Successfully migrated slab

## Other responses

- `500` — Internal server error
- `503` — Consensus isn't synced

## Changes

- **2024-12-11** `d9b66ab40419` — 1 info
  - endpoint added
- **2024-12-10** `9444e14a45b7` — 1 breaking
  - api path removed without deprecation
- **2024-12-09** `9bd8635d818c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/siafoundation/apis/renterd-api/changes/worker/slab/migrate/post.md)

---

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