Updates a document (title, body, status, locale, tags, metadata).
Updates the authoring copy in place. Changes affect search results only after the parent knowledge base is published again. Publishing a document with knowledge from a conversation held during a knowledge notice (`metadata.extractedDuringNotice`) needs `noticeDecision=STILL_TRUE` and a `noticeDecisionReason`; without them it is refused with 409 `notice_decision_required`. Restoring the version agents are already served is not refused. The notice keys in `metadata` cannot be set or cleared here.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The knowledge base id.
uuidThe document id.
uuidThe tenant identifier
Document fields to replace. Null properties are left unchanged.
"UNSPECIFIED" | "DRAFT" | "PUBLISHED" | "ARCHIVED"Publishing a document that has knowledge from a conversation held during a knowledge notice
(metadata.extractedDuringNotice) needs a decision: STILL_TRUE with
UpdateKnowledgeDocumentRequest.NoticeDecisionReason publishes it as an article. The other two answers are archiving it and
:becomeNotice. Ignored on any other update.
"UNSPECIFIED" | "STILL_TRUE"Why the knowledge holds after the incident; required with UpdateKnowledgeDocumentRequest.NoticeDecision, at most 256 characters.
Response Body
curl -X PATCH "https://api.fruxon.com/v1/tenants/string/knowledgeBases/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "00000000-0000-0000-0000-000000000000",
"knowledgeBaseId": "00000000-0000-0000-0000-000000000000",
"title": "string",
"bodyMarkdown": "string",
"status": "DRAFT",
"locale": "string",
"tags": [
"string"
],
"metadata": {},
"sourceConversationIds": [
"string"
],
"lastReviewedAt": 0,
"lastReviewedBy": "string",
"createdAt": 0,
"modifiedAt": 0,
"contentRevision": 0,
"liveVersion": {
"title": "string",
"bodyMarkdown": "string"
},
"lastChange": {
"cause": "AUTHORED",
"actorId": "string",
"agentId": "string",
"at": 0
}
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}