---
title: "Creates and queues a migration import task, from an export created via the migration partial-export api."
method: POST
path: "/migrations/import"
tags: ["Migrations"]
---

# Creates and queues a migration import task, from an export created via the migration partial-export api.

`POST /migrations/import`

The migration API provides the ability to back-up and restore parts of an Octopus Deploy instance remotely Further details can be found in the docs.

## Request body

- CreateMigrationImportTaskCommand
  - `DeletePackageOnCompletion` boolean
  - `FailureCallbackUri` string
  - `IsDryRun` boolean
  - `IsEncryptedPackage` boolean
  - `OverwriteExisting` boolean
  - `PackageFeedSpaceId` string
  - `PackageId` string, required
  - `PackageVersion` string, required
  - `Password` string, required
  - `SuccessCallbackUri` string

## Response `200`

The requested import task that has been queued.

- MigrationImportResource
  - `DeletePackageOnCompletion` boolean
  - `FailureCallbackUri` string
  - `Id` string
  - `IsDryRun` boolean
  - `IsEncryptedPackage` boolean
  - `LastModifiedBy` string
  - `LastModifiedOn` string, date-time
  - `Links` object
  - `OverwriteExisting` boolean
  - `PackageFeedSpaceId` string
  - `PackageId` string
  - `PackageVersion` string
  - `Password` string
  - `SuccessCallbackUri` string
  - `TaskId` string

## Other responses

- `400` — Bad request. Either the payload was not structurally valid or business rules did not permit the operation.
- `404` — Not found. One or more of the entities involved in the operation was not found.

---

[API](https://skmtc.net/octopus/apis/octopus-server-api.md) · [All operations](https://skmtc.net/octopus/apis/octopus-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/octopus/octopus-server-api/versions/bc9158facfc7/schema)
