Update document
client.documents.update(stringid, DocumentUpdateParams { containerTag, containerTags, content, 5 more } body, RequestOptionsoptions?): DocumentUpdateResponse { id, status }
PATCH/v3/documents/{id}
Update a document with any content type (text, url, file, etc.) and metadata
Update document
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});
const document = await client.documents.update('id');
console.log(document.id);{
"id": "id",
"status": "status"
}Returns Examples
{
"id": "id",
"status": "status"
}