---
title: "Batch migrate all instances of case definition"
method: POST
path: "/cmmn-repository/case-definitions/{caseDefinitionId}/batch-migrate"
tags: ["Case Definitions"]
---

# Batch migrate all instances of case definition

`POST /cmmn-repository/case-definitions/{caseDefinitionId}/batch-migrate`

## Request

- Base URL: `https://developer-docs.flowable.com/cmmn-api`
- URL: `https://developer-docs.flowable.com/cmmn-api/cmmn-repository/case-definitions/{caseDefinitionId}/batch-migrate`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/docs/cmmn-repository/case-definitions/:caseDefinitionId/batch-migrate/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `caseDefinitionId` string, required

## Request body

- string

## Response `200`

Indicates case instances were found and batch migration was started.

- BatchResponse
  - `id` string
  - `url` string
  - `batchType` string
  - `searchKey` string
  - `searchKey2` string
  - `createTime` string, date-time
  - `completeTime` string, date-time
  - `status` string
  - `tenantId` string

## Other responses

- `404`: Indicates the requested case definition was not found.

---

[API](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/revisions/afdfa1fcacd0?raw)
