import Morphik from 'morphik';const client = new Morphik({ apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted});const summaryResponse = await client.folders.upsertSummary('folder_id_or_name', { content: 'content' });console.log(summaryResponse.content);
Create or update a folder summary with optional versioning.
PUT
/
folders
/
{folder_id_or_name}
/
summary
JavaScript
Copy
Ask AI
import Morphik from 'morphik';const client = new Morphik({ apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted});const summaryResponse = await client.folders.upsertSummary('folder_id_or_name', { content: 'content' });console.log(summaryResponse.content);