POST
/
cache
/
{name}
/
add_docs
JavaScript
import Morphik from 'morphik';

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

const response = await client.cache.addDocs('name', { body: ['string'] });

console.log(response);
{}

Headers

authorization
string

Path Parameters

name
string
required

Body

application/json · string[]

The body is of type string[].

Response

200
application/json

Successful Response

The response is of type object.