Documents
Update Document by Text
Changed onUpdates a document's text content, name, or processing configuration. Re-indexes the document when its text changes.
post/datasets/{dataset_id}/documents/{document_id}/update-by-text
Request
- Base URLhttps://api.dify.ai/v1
- URLhttps://api.dify.ai/v1/datasets/{dataset_id}/documents/{document_id}/update-by-text
- AuthHTTP bearer
Path parameters
dataset_idstring uuid required
Knowledge base ID, from List Knowledge Bases. For a scoped key, copy the ID from the Dify URL.
document_idstring uuid required
Document ID. From List Documents.
Request body
Response
Document updated successfully.
Changes
- info
added the non-success response with the status
- info