Entity Cleanup Apply
POST /api/writing/entities/cleanup/apply
POST
/api/writing/entities/cleanup/apply
Delete the supplied row IDs and rebuild affected ChromaDB collections.
Body shape::
{
"documentEntityIds": ["..."],
"loreEntryIds": ["..."],
"rebuildChromadbForProjects": ["proj-a", "proj-b"]
}
The response carries a failures list for any per-item skip; the
caller surfaces those so the orphan can be retried.
Request Body required
Section titled “Request Body required ” EntityCleanupApplyBody
object
documentEntityIds
Documententityids
Array<string>
loreEntryIds
Loreentryids
Array<string>
rebuildChromadbForProjects
Rebuildchromadbforprojects
Array<string>
Responses
Section titled “ Responses ”Successful Response
Response Entity Cleanup Apply Api Writing Entities Cleanup Apply Post
object
key
additional properties
any
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context