Knowledge base documents
Remove a knowledge base document
Removes a document from a knowledge base. Its file stays in the workspace's files.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
knowledge_base_id*stringThe knowledge base.
uuidknowledge_base_document_id*stringThe document of the knowledge base.
uuidregion*RegionsRegion of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them
"besg""usnv"OK
application/json- response
knowledge_base_id*Knowledge Base Idremoved_document_id*Removed Document Idcurl -X DELETE 'https://api.stacksync.com/v1/workspaces/0/knowledge-bases/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08?region=besg'{ "knowledge_base_id": "<knowledge_base_id>", "removed_document_id": "<removed_document_id>"}POSTAdd a knowledge base document
Adds a file of the workspace (uploaded with the files API) to a knowledge base as a document, and processes it. The file must be a document Stacksync can read (PDF, Word, Excel, CSV, JSON, Markdown or plain text) and not already a document of the knowledge base. With validate_only, the checks run and 204 answers, nothing is added.
GETList Genies
The Genies of the workspace in one region, newest first.