Cancels the case AI jobs, then deletes its AI pipeline data (chunks, summaries, snippets, processing state, tag suggestion cache, filing extractions and message embeddings) while keeping attorney work: attorney-stated and confirmed context fields, attorney notes and evidentiary map overrides. With dryRun: true it only counts what would be removed. Requires owner or admin access to the case and an active plan (403 otherwise); not available to opposing counsel.
POST
/ai/cases/{caseId}/reset
curl \
--request POST 'http://api.example.com/ai/cases/{caseId}/reset' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"dryRun": false
}'
Request examples
{
"dryRun": false
}
Response examples (200)
{
"data": {
"case": "65a1b2c3d4e5f6a7b8c9d0e2",
"dryRun": false,
"cancelledJobs": {
"case": "65a1b2c3d4e5f6a7b8c9d0e2",
"cancelled": {
"ai-embedding-jobs": {
"waiting": 4,
"delayed": 0,
"paused": 0,
"active": 1
}
},
"totalCancelled": 5
},
"deleted": {
"chunks": 42.0,
"periodSummaries": 42.0,
"conversationSummaries": 42.0,
"evidenceSnippets": 42.0,
"processingStates": 42.0,
"tagSuggestionCacheEntries": 42.0,
"contextExtractions": 42.0
},
"messagesEmbeddingsCleared": 1200,
"caseSummaryReset": true,
"evidentiaryMapEntriesPreserved": 2,
"contextFieldsCleared": [
"keyDates"
],
"preserved": [
"string"
]
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}