# Batch Operation Rest API not working as expected and mentioned in the contract

**URL:** <https://forum.camunda.io/t/batch-operation-rest-api-not-working-as-expected-and-mentioned-in-the-contract/66534>\
**Category:** Discussion & Questions\
**Created:** [January 6, 2026, 1:54pm UTC](https://forum.camunda.io/t/batch-operation-rest-api-not-working-as-expected-and-mentioned-in-the-contract/66534 "2026-01-06T13:54:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikaskh](https://forum.camunda.io/user_avatar/forum.camunda.io/vikaskh/32/32958_2.png) [@vikaskh](https://forum.camunda.io/u/vikaskh)\
**Post date:** [January 6, 2026, 1:54pm UTC](https://forum.camunda.io/t/batch-operation-rest-api-not-working-as-expected-and-mentioned-in-the-contract/66534/1 "2026-01-06T13:54:55Z")

</div>

Hi,

I am trying to consume the Batch Operation APIs and want to monitor this batch operations. Also seeking to take necessary actions.

I am trying to make use of search functionality based on the operation state, but in response getting error. Example mentioned:

[https://sin-1.zeebe.camunda.io/{clusterUUID}/v2/batch-operations/search](https://sin-1.zeebe.camunda.io/%7BclusterUUID%7D/v2/batch-operations/search)

Body:

`{`  
`“filter”: {`  
`“state”: “INCOMPLETED”`  
`}`  
`}`

Response:

`{`  
`“items”: ``,`  
`“page”: {`  
`“totalItems”: 0,`  
`“hasMoreTotalItems”: false`  
`}`  
`}`

But when the response we tried by using the batch operation key parameter, we are able to see the response:

[https://sin-1.zeebe.camunda.io/{clusterUUID}/v2/batch-operations/search](https://sin-1.zeebe.camunda.io/%7BclusterUUID%7D/v2/batch-operations/search)

Request Body:

{  
“filter”: {  
“batchOperationKey”: “a690c999-295d-4309-9e77-491dd5a02fb9”  
}  
}

Response:

{  
“items”: [{  
“batchOperationKey”: “a690c999-295d-4309-9e77-491dd5a02fb9”,  
“state”: “INCOMPLETED”,  
“batchOperationType”: “MIGRATE\_PROCESS\_INSTANCE”,  
“startDate”: “2026-01-06T10:46:22.192Z”,  
“endDate”: “2026-01-06T10:47:02.620Z”,  
“operationsTotalCount”: 1,  
“operationsFailedCount”: 0,  
“operationsCompletedCount”: 1,  
“errors”:   
}],  
“page”: {  
“totalItems”: 1,  
“hasMoreTotalItems”: false,  
“startCursor”: “WyJhNjkwYzk5OS0yOTVkLTQzMDktOWU3Ny00OTFkZDVhMDJmYjkiXQ==”,  
“endCursor”: “WyJhNjkwYzk5OS0yOTVkLTQzMDktOWU3Ny00OTFkZDVhMDJmYjkiXQ==”  
}  
}

Also noticed that state in response is INCOMPLETE and errors are also blank.

Similarly able to see response for the url:

[https://sin-1.zeebe.camunda.io/{clusterUUID}/v2/batch-operations/a690c999-295d-4309-9e77-491dd5a02fb9](https://sin-1.zeebe.camunda.io/%7BclusterUUID%7D/v2/batch-operations/a690c999-295d-4309-9e77-491dd5a02fb9)

{  
“batchOperationKey”: “a690c999-295d-4309-9e77-491dd5a02fb9”,  
“state”: “INCOMPLETED”,  
“batchOperationType”: “MIGRATE\_PROCESS\_INSTANCE”,  
“startDate”: “2026-01-06T10:46:22.192Z”,  
“endDate”: “2026-01-06T10:47:02.620Z”,  
“operationsTotalCount”: 1,  
“operationsFailedCount”: 0,  
“operationsCompletedCount”: 1,  
“errors”:   
}

Not able to understand the inconsistency in API response and why searching batch operation functionality is not working based on the operation state.

Also - there is no contract of INCOMPLETED in the documentation for the operation state, but we are getting in the response.

[`ACTIVE`, `CANCELED`, `COMPLETED`, `CREATED`, `FAILED`, `PARTIALLY_COMPLETED`, `SUSPENDED`]

> **[Search batch operations | Camunda 8 Docs](https://docs.camunda.io/docs/apis-tools/orchestration-cluster-api-rest/specifications/search-batch-operations/)**
>
> \[Learn about endpoint consistency\](../../orchestration-cluster-api-rest-data-fetching/#data-consistency)

Please share yours thought or opinion on this. Basically I would like to monitor the batch operations and would like to take necessary actions for FAILED, PARTIALLY\_INCOMPLETE state.

[https://sin-1.zeebe.camunda.io/{clusterUUID}/v2/batch-operations/search](https://sin-1.zeebe.camunda.io/%7BclusterUUID%7D/v2/batch-operations/search)

---

<div class="post-metadata">

**Author:** ![cpbpm](https://forum.camunda.io/letter_avatar_proxy/v4/letter/c/919ad9/32.png) [@cpbpm](https://forum.camunda.io/u/cpbpm)\
**Post date:** [January 6, 2026, 6:07pm UTC](https://forum.camunda.io/t/batch-operation-rest-api-not-working-as-expected-and-mentioned-in-the-contract/66534/2 "2026-01-06T18:07:24Z")

</div>

> **[Search batch operations | Camunda 8 Docs](https://docs.camunda.io/docs/next/apis-tools/orchestration-cluster-api-rest/specifications/search-batch-operations/)**
>
> \[Learn about endpoint consistency\](../../orchestration-cluster-api-rest-data-fetching/#data-consistency)

{  
“sort”: [  
{  
“field”: “state”  
}  
],  
“filter”: {  
“state”: “ACTIVE”,  
},  
“page”: {  
“limit”: 100  
}  
}

Refer the documentation for input section of the body. Based on the documentation, state has no value mentioned as INCOMPLETED.

> ****
>
> **Possible values:** [`ACTIVE`, `CANCELED`, `COMPLETED`, `CREATED`, `FAILED`, `PARTIALLY_COMPLETED`, `SUSPENDED`]

Try the above values for search operations.

---

<div class="post-metadata">

**Author:** ![vikaskh](https://forum.camunda.io/user_avatar/forum.camunda.io/vikaskh/32/32958_2.png) [@vikaskh](https://forum.camunda.io/u/vikaskh)\
**Post date:** [January 7, 2026, 4:00am UTC](https://forum.camunda.io/t/batch-operation-rest-api-not-working-as-expected-and-mentioned-in-the-contract/66534/3 "2026-01-07T04:00:30Z")

</div>

INCOMPLETED State, I am getting in response. I am aware about the endpoint inconsistency article, but just now after more than 12 hours, still seeing the same response.

{  
“batchOperationKey”: “a690c999-295d-4309-9e77-491dd5a02fb9”,  
“state”: “INCOMPLETED”,  
“batchOperationType”: “MIGRATE\_PROCESS\_INSTANCE”,  
“startDate”: “2026-01-06T10:46:22.192Z”,  
“endDate”: “2026-01-06T10:47:02.620Z”,  
“operationsTotalCount”: 1,  
“operationsFailedCount”: 0,  
“operationsCompletedCount”: 1,  
“errors”:   
}
