For emails imported into the case by a multi-keyword search, removes the keyword tags whose keyword does not appear in the email (sender, recipient, subject and manual tags stay) and recomputes the thread tags, optionally only for mailbox providerId. Safe to repeat; runs synchronously and reports how many emails and threads changed. Super admin only.
POST
/admin/email/{caseId}/fix-search-tag-attribution
curl \
--request POST 'http://api.example.com/admin/email/{caseId}/fix-search-tag-attribution' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"providerId": "string"
}'
Request examples
{
"providerId": "string"
}
Response examples (200)
{
"data": {
"message": "Done",
"isSuccess": true
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}