Creates an extraction code for every case that has none, or for every case when createIfEvenExists is true, in batches of 1000, with the case creator as custodian and default settings. Returns a message with the number created. Super admin only.
POST
/admin/case/create-bulk-extraction-codes
curl \
--request POST 'http://api.example.com/admin/case/create-bulk-extraction-codes' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"createIfEvenExists": true
}'
Request examples
{
"createIfEvenExists": true
}
Response examples (200)
{
"data": {
"message": "Done",
"isSuccess": true
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}