import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.folders.documents.add('document_id', { folder_id: 'folder_id' });
console.log(response.message);
{
"status": "<string>",
"message": "<string>"
}
Add a document to a folder.
Args: folder_id: ID of the folder document_id: ID of the document auth: Authentication context
Returns: Success status
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.folders.documents.add('document_id', { folder_id: 'folder_id' });
console.log(response.message);
{
"status": "<string>",
"message": "<string>"
}
Successful Response
Response for adding document to folder endpoint
Was this page helpful?