Knowledge Base
Update multiple documents
Update metadata (sourceUrl, name, tags) of up to 100 existing documents in a single request, without re-uploading their content. Each item must include the document id. Items are processed independently — the response includes per-item results.
patch/knowledge-bases/{id}/documents/batch
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_).
Request body
Response
Batch processed. Each item has its own success or error status.
Example response
{
"results": [
{
"document": {
"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.