Insert a document.
Expects an object like:
```
{
'table':'movies',
'id':701,
'doc':
{
'title':'This is an old movie',
'plot':'A secret team goes to North Pole',
'year':1950,
'rating':9.5,
'lat':60.4,
'lon':51.99,
'advise':'PG-13',
'meta':'{"keywords":{"travel","ice"},"genre":{"adventure"}}',
'language':[2,3]
}
}
```
The document id can also be missing, in which case an autogenerated one will be used:
```
{
'table':'movies',
'doc':
{
'title':'This is a new movie',
'plot':'A secret team goes to North Pole',
'year':2020,
'rating':9.5,
'lat':60.4,
'lon':51.99,
'advise':'PG-13',
'meta':'{"keywords":{"travel","ice"},"genre":{"adventure"}}',
'language':[2,3]
}
}
```
It responds with an object in format:
```
{'table':'products','id':701,'created':true,'result':'created','status':201}
```
Insert is an example object payload from Manticore Search, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"operationId": "insert",
"method": "POST",
"path": "/insert",
"summary": "Create a new document in a table",
"description": "Insert a document. \nExpects an object like:\n \n ```\n {\n 'table':'movies',\n 'id':701,\n 'doc':\n {\n 'title':'This is an old movie',\n 'plot':'A secret team goes to North Pole',\n 'year':1950,\n 'rating':9.5,\n 'lat':60.4,\n 'lon':51.99,\n 'advise':'PG-13',\n 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}',\n 'language':[2,3]\n }\n }\n ```\n \nThe document id can also be missing, in which case an autogenerated one will be used:\n \n ```\n {\n 'table':'movies',\n 'doc':\n {\n 'title':'This is a new movie',\n 'plot':'A secret team goes to North Pole',\n 'year':2020,\n 'rating':9.5,\n 'lat':60.4,\n 'lon':51.99,\n 'advise':'PG-13',\n 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}',\n 'language':[2,3]\n }\n }\n ```\n \nIt responds with an object in format:\n \n ```\n {'table':'products','id':701,'created':true,'result':'created','status':201}\n ```\n",
"requestExample": "test"
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.