---
title: "Stop a Migration"
method: POST
path: "/storage/migrations/{id}/actions/stop"
tags: ["Data Migration"]
---

# Stop a Migration

`POST /storage/migrations/{id}/actions/stop`

## Path parameters

- `id` string, required

## Response `200`

Create Migration Response

- object
  - `data` MigrationParams
    - `id` string — Unique identifier for the data migration.
    - `source_id` string, required — ID of the Migration Source from which to migrate data.
    - `target_bucket_name` string, required — Bucket name to migrate the data into. Will default to the same name as the `source_bucket_name`.
    - `target_region` string, required — Telnyx Cloud Storage region to migrate the data to.
    - `refresh` boolean — If true, will continue to poll the source bucket to ensure new data is continually migrated over.
    - `last_copy` string, date-time — Time when data migration was last copied from the source.
    - `status` 'pending' | 'checking' | 'migrating' | 'complete' | 'error' | 'stopped' — Status of the migration.
    - `bytes_to_migrate` integer — Total amount of data found in source bucket to migrate.
    - `bytes_migrated` integer — Total amount of data that has been succesfully migrated.
    - `speed` integer — Current speed of the migration.
    - `eta` string, date-time — Estimated time the migration will complete.
    - `created_at` string, date-time — Time when data migration was created

## Other responses

- `401` — Unauthorized
- `404` — Migration not found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/versions/8f5f4e537994/schema)
