Upsert products and their embeddings, this endpoint creates and updates all products that are in the list and delete all products that are not in the list.
| Parameter | Type | Required | Description |
|---|---|---|---|
promptBlockId | string | Yes | Product block ID to synchronize |
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Product name |
description | string | Yes | Natural language description for AI (max 8192) |
price | number | Yes | Product price (positive number) |
currency | string | Yes | Currency code |
type | string | Yes | PRODUCT or SERVICE |
external_id | string | Yes | Your unique identifier |
file_url | string | No | Product image URL |
metadata | array | Yes | Additional product data as key-value pairs |
external_id are createdexternal_id are updated| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid data |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Product block not found |
| 500 | Internal Server Error |
API key needed to authorize the request
The prompt block ID to upsert the products
The payload to send with the products
1In the description you only need to add words that help the AI do a semantic search, avoide placing here prices, links or other type of data that is not natural language
1 - 8192shopify, vambe, woocommerce, axis, vtex CLP, ARS, COP, MXN, EUR, USD, UF, PEN, BRL, HNL x > 0Products upserted successfully.