Skip to main content
POST
Create one item or an array of items. NSL generates each integer item ID; do not provide your own top-level ID. Set metadata.source_item_id to a stable source identifier when repeated imports should update the same item. The same source ID within your workspace resolves to the existing NSL ID. Other metadata keys, such as a custom sku, do not enable this matching by themselves. Store the returned integer IDs for event tracking, related-item requests and direct updates. New items are active; change availability with Update item. See Catalogue for ingestion paths and field guidance.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

neuronsearchlab-api/write

Create, update, and delete items; submit events.

Body

application/json
name
string
required
Minimum string length: 1
Example:

"Wireless Headphones"

description
string
Example:

"Noise-cancelling Bluetooth headphones."

metadata
object

Item metadata. Set source_item_id to a stable source identifier to update the same item on repeated ingestion; arbitrary metadata keys do not provide this mapping.

Example:

Response

Created item or created item list

id
integer
required
Required range: x >= 1
Example:

3187

object
enum<string>
required
Available options:
item
name
string
required
Example:

"Wireless Headphones"

description
string
required
Example:

"Noise-cancelling Bluetooth headphones."

metadata
object
required

Arbitrary JSON object used for filtering, ranking, and debugging.

Example:
active
boolean
required
Example:

true

created
integer<int64> | null
required

Unix timestamp in seconds.

Example:

1777478400

updated_at
integer<int64> | null
required

Unix timestamp in seconds.

Example:

1777478500