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
model-config
Update Model Config
Update an existing model configuration.
PUT
/
model-config
/
{config_id}
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const modelConfigResponse = await client.modelConfig.update('config_id', { config_data: { foo: 'bar' } });
console.log(modelConfigResponse.id);
Copy
Ask AI
{
"id": "<string>",
"provider": "<string>",
"config_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Headers
Path Parameters
Body
application/json
Request model for updating a model configuration.
Response
200
application/json
Successful Response
Response model for model configuration.
Was this page helpful?
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const modelConfigResponse = await client.modelConfig.update('config_id', { config_data: { foo: 'bar' } });
console.log(modelConfigResponse.id);
Copy
Ask AI
{
"id": "<string>",
"provider": "<string>",
"config_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.