---
title: "Creates and queues a partial-export migration task."
method: POST
path: "/migrations/partialexport"
tags: ["Migrations"]
---

# Creates and queues a partial-export migration task.

`POST /migrations/partialexport`

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

- CreateMigrationPartialExportTaskCommand
  - `DestinationApiKey` string
  - `DestinationPackageFeed` string
  - `DestinationPackageFeedSpaceId` string
  - `EncryptPackage` boolean
  - `FailureCallbackUri` string
  - `IgnoreCertificates` boolean
  - `IgnoreDeployments` boolean
  - `IgnoreMachines` boolean
  - `IgnoreTenants` boolean
  - `IncludeTaskLogs` boolean
  - `PackageId` string
  - `PackageVersion` string
  - `Password` string, required
  - `Projects` string[], required
  - `SpaceId` string
  - `SuccessCallbackUri` string

## Response `200`

The requested partial export task that has been queued.

- MigrationPartialExportResource
  - `DestinationApiKey` string
  - `DestinationPackageFeed` string
  - `DestinationPackageFeedSpaceId` string
  - `EncryptPackage` boolean
  - `FailureCallbackUri` string
  - `Id` string
  - `IgnoreCertificates` boolean
  - `IgnoreDeployments` boolean
  - `IgnoreMachines` boolean
  - `IgnoreTenants` boolean
  - `IncludeTaskLogs` boolean
  - `LastModifiedBy` string
  - `LastModifiedOn` string, date-time
  - `Links` object
  - `PackageId` string
  - `PackageVersion` string
  - `Password` string
  - `Projects` string[]
  - `SpaceId` 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)
