Create items
Create catalog items for recommendation.
Documentation Index
Fetch the complete documentation index at: https://docs.neuronsearchlab.com/llms.txt
Use this file to discover all available pages before exploring further.
Description
Creates one or more catalog items. UsePOST /v1/items/{item_id} to update an existing item.
Request
id is optional. If omitted, NeuronSearchLab generates an itm_ prefixed ID. The aliases item_id and itemId are also accepted, but only one ID field should be present.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | no | Prefixed item ID such as itm_7f3a2c9e. |
name | string | yes | Human-readable item name. |
description | string | no | Text used for embeddings and debugging. |
metadata | object | no | JSON object with filterable catalog attributes. |
Response
object: "list") whose data array contains every created item. A single-item request returns the item resource directly.
Errors
| Status | Scenario |
|---|---|
400 | Missing body, invalid JSON, missing name, or malformed id |
401 | Missing or invalid Bearer token |
403 | Token does not include neuronsearchlab-api/write |
409 | An item with the requested ID already exists |
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
- object
- object[]
1"Wireless Headphones"
Optional public item ID. If omitted, the API generates one.
^itm_[A-Za-z0-9][A-Za-z0-9_-]{2,}$"itm_7f3a2c9e"
Snake-case alias for id.
^itm_[A-Za-z0-9][A-Za-z0-9_-]{2,}$CamelCase alias for id.
^itm_[A-Za-z0-9][A-Za-z0-9_-]{2,}$"Noise-cancelling Bluetooth headphones."
Arbitrary JSON object used for filtering, ranking, and debugging.
{
"category": "electronics",
"brand": "Acme",
"price": 10999,
"currency": "usd"
}Response
Created item or created item list
- Option 1
- Option 2
^itm_[A-Za-z0-9][A-Za-z0-9_-]{2,}$"itm_7f3a2c9e"
item "Wireless Headphones"
"Noise-cancelling Bluetooth headphones."
Arbitrary JSON object used for filtering, ranking, and debugging.
{
"category": "electronics",
"brand": "Acme",
"price": 10999,
"currency": "usd"
}true
Unix timestamp in seconds.
1777478400
Unix timestamp in seconds.
1777478500

