POST
/
models
JavaScript
import Morphik from 'morphik';

const client = new Morphik({
  apiKey: 'My API Key',
});

const modelResponse = await client.models.create({
  config: { foo: 'bar' },
  name: 'name',
  provider: 'provider',
});

console.log(modelResponse.id);
{
  "id": "<string>",
  "name": "<string>",
  "provider": "<string>",
  "config": {},
  "created_at": "<string>",
  "updated_at": "<string>"
}

Headers

authorization
string

Body

application/json

Request to save a custom model.

Response

200
application/json

Successful Response

Response for a saved model.