---
title: "compute migration context"
method: POST
path: "/api/migrations/context"
tags: ["migration"]
---

# compute migration context

`POST /api/migrations/context`

## Request

- The document declares no server URL.
- Auth: none declared

Computes the diff of two given graphs and stores it in the session for later usage in migration endpoints. Accepts the graphs either as file uploads, GraphIdentifiers or a combination of both.

## Query parameters

- `workspaceA` string
- `schemaA` string
- `workspaceB` string
- `schemaB` string
- `ignorePrefixes` boolean

## Headers

- `origin` string

## Request body `multipart/form-data`

- object
  - `fileA` string, binary: The file containing graph A. Mutually exclusive with workspace_a and schema_name_a.
  - `fileB` string, binary: The file containing graph B. Mutually exclusive with workspace_b and schema_name_b.

## Response `200`

OK

## Changes

- **2026-11-23** `91d142ef001a`: 4 warning, 4 info
  - deleted the `query` request parameter `datasetA`
  - deleted the `query` request parameter `datasetB`
  - deleted the `query` request parameter `graphA`
  - deleted the `query` request parameter `graphB`
  - …4 more
- **2026-09-10** `3a79112398f3`: 1 info
  - added the new optional `query` request parameter `ignorePrefixes`

[Operation history](https://skmtc.dev/soptim/apis/rdfarchitect-backend/changes/api/migrations/context/post.md)

---

[API](https://skmtc.dev/soptim/apis/rdfarchitect-backend.md) - [All operations](https://skmtc.dev/soptim/apis/rdfarchitect-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/soptim/apis/rdfarchitect-backend/revisions/21e6477d8dd8?raw)
