---
title: "Migrate record between versions"
method: POST
path: "/groups/{groupId}/artifacts/{artifactId}/contract/migrate"
tags: ["Contracts"]
---

# Migrate record between versions

`POST /groups/{groupId}/artifacts/{artifactId}/contract/migrate`

Executes migration rules to transform a record from one schema version to another, chaining transforms across version hops.

## Request body

- object
  - `fromVersion` string, required
  - `toVersion` string, required
  - `record` object, required

## Response `200`

The migration result.

- object
  - `passed` boolean
  - `transformedRecord` object
  - `violations` object[]
    - `ruleName` string
    - `message` string
    - `action` string
  - `executedRules` integer
  - `failedRules` integer

## Other responses

- `400` — Common response for all operations that can return a `400` error.
- `404` — Common response for all operations that can return a `404` error.
- `500` — Common response for all operations that can fail with an unexpected server error.

---

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