---
title: "Creates the basic migration record."
method: POST
path: "/v1/InternalMigration/CreateMigration"
tags: ["InternalMigration"]
---

# Creates the basic migration record.

`POST /v1/InternalMigration/CreateMigration`

## Request body

- AdaptekApiApplicationMigrationsCommandsCreateMigrationCreateMigrationCommand
  - `groupId` integer
  - `sourceHoldingCompanyId` integer
  - `targetHoldingCompanyId` integer
  - `userCreatedId` integer
  - `agents` AdaptekApiApplicationMigrationsCommandsCreateMigrationMigrationAgentModel[], nullable
    - `sourceId` integer
    - `targetId` integer

## Response `200`

The migration record was created

- AdaptekApiApplicationMigrationsCommandsCreateMigrationCreateMigrationResponse
  - `responseStatus` 0 | 1 | 2
  - `migrationId` integer, nullable

## Other responses

- `400` — The migration record was not created

---

[API](https://skmtc.net/adaptek/apis/adaptek-api.md) · [All operations](https://skmtc.net/adaptek/apis/adaptek-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/adaptek/adaptek-api/revisions/517cf2397b0d/schema)
