Skip to content

Entity 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.

EntityCleanupApplyBody
object
documentEntityIds
Documententityids
Array<string>
loreEntryIds
Loreentryids
Array<string>
rebuildChromadbForProjects
Rebuildchromadbforprojects
Array<string>

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>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object