Skip to content

Purge Subject Knowledge

POST /knowledge/subject-purge

Erase one person across every knowledge base in the organization (§12).

The one load-bearing line is :func:_organization_anchored. Everything else is the service’s.

FieldTypeNotes
subject_kinduser | guestrequired—
subject_idstringrequiredmin length 1 max length 200
reasonstringrequiredmin length 3 max length 2000
StatusDescriptionBody
200Successful ResponsePurgeResult
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/knowledge/subject-purge \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"subject_kind": "user",
"subject_id": "string",
"reason": "string"
}'
FieldTypeNotes
subject_kinduser | guestrequired—
subject_idstringrequired—
actionsPurgeActionsrequired—
retainedPurgeRetainedrequired—
workspaces_visitedintegeroptionalDefault 0.