Knowledge Base
Update a document
Update metadata (sourceUrl, name, tags) of an existing document without re-uploading its content. At least one field must be provided. Updating tags replaces the document's existing tags with the provided set.
patch/knowledge-bases/{id}/documents/{documentId}
Request
- Base URLhttps://api.markcopy.ai/api/v1
- AuthAPI key in header X-API-Key
Path parameters
idstring required
Example:kb_a8f3x9k2m4pQ
The external ID of the knowledge base (prefixed with kb_).
documentIdstring required
Example:doc_b7n4p1q8r3wX
The external ID of the document (prefixed with doc_).
Request body
Response
Document updated.
Example response
{
"id": "doc_b7n4p1q8r3wX",
"name": "Onboarding Guide",
"sourceUrl": "https://wiki.internal/handbook/onboarding",
"tags": [
"handbook",
"hr"
],
"mimeType": "text/markdown"
}Changes
No recorded changes to this operation across all 1 revision of this API.