import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.folders.documents.add('document_id', {
folder_id_or_name: 'folder_id_or_name',
});
console.log(response.message);{
"status": "<string>",
"message": "<string>"
}Add a document to a folder.
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.folders.documents.add('document_id', {
folder_id_or_name: 'folder_id_or_name',
});
console.log(response.message);{
"status": "<string>",
"message": "<string>"
}Was this page helpful?