Update Single Document

InsightMaker.update(dataset, document_id, body) Allows you to update a single document, given its id.

Name
Type
Description

dataset

String or Dataset

Dataset object or dataset name string

document_id

String

Document ID

body

Dictionary

Key value pairs of properties & their updated values (these can be any InsightMaker properties, including data attributes)

Response

True

Example

im.update("documents", "SoXQt3UBC7u0ycD7FRg2", {"metadata.title": "Hello Python"})

Last updated