Getting Started
API Reference
- GETPing Health
- GETGet Available Models
- POSTRetrieve Chunks
- POSTRetrieve Chunks Grouped
- POSTRetrieve Documents
- POSTBatch Get Documents
- POSTBatch Get Chunks
- POSTQuery Completion
- GETGet Chat History
- GETGet Available Models For Selection
- POSTAgent Query
- GETGet Usage Stats
- GETGet Recent Usage
- POSTGenerate Local Uri
- POSTGenerate Cloud Uri
- DELDelete Cloud App
- GETList Chat Conversations
- PATCHUpdate Chat Title
Documents
Folders
Workflows
model-config
Logs
Graph
Folders
Associate Workflow To Folder
Associate a workflow with a folder for automatic execution on document ingestion.
POST
/
folders
/
{folder_id}
/
workflows
/
{workflow_id}
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.folders.workflows.associate('workflow_id', { folder_id: 'folder_id' });
console.log(response);
Copy
Ask AI
{}
Headers
Response
200
application/json
Successful Response
The response is of type object
.
Was this page helpful?
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.folders.workflows.associate('workflow_id', { folder_id: 'folder_id' });
console.log(response);
Copy
Ask AI
{}
Assistant
Responses are generated using AI and may contain mistakes.