---
title: "Changes status for a list of cases"
method: POST
path: "/cases/batchStatusChange"
tags: ["Case"]
---

# Changes status for a list of cases

`POST /cases/batchStatusChange`

## Request

- Base URL: `http://localhost:3001/api`
- URL: `http://localhost:3001/api/cases/batchStatusChange`
- Auth: none declared

## Request body

- union
  - object
    - `caseIds` string[], required: Cases having IDs provided here will have their status changed to one specified in status field.
    - `status` 'UNVERIFIED' | 'VERIFIED' | 'EXCLUDED', required
    - `query` string: Cases matching this query will have their status changed. Must contain non-whitespace characters.
    - `note` string: The reason behind exclusion (or other important info). This field is ignored if a status is not "Excluded".
  - object
    - `caseIds` string[]: Cases having IDs provided here will have their status changed to one specified in status field.
    - `status` 'UNVERIFIED' | 'VERIFIED' | 'EXCLUDED', required
    - `query` string, required: Cases matching this query will have their status changed. Must contain non-whitespace characters.
    - `note` string: The reason behind exclusion (or other important info). This field is ignored if a status is not "Excluded".

## Response `200`

OK

## Other responses

- `400`: Malformed request
- `422`: Unprocessable entity
- `500`: Internal server error

## Changes

- **2021-03-05** `3c824ebb2004`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/globaldothealth/apis/global-health-curator-service-api/changes/cases/batchStatusChange/post.md)

---

[API](https://skmtc.dev/globaldothealth/apis/global-health-curator-service-api.md) - [All operations](https://skmtc.dev/globaldothealth/apis/global-health-curator-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/globaldothealth/apis/global-health-curator-service-api/revisions/5b1151265235?raw)
