WayloAIWaylo Docs
APIReferenceCatalogs

Create catalog items

POST
/catalogs/{id}/items

Bulk upsert on sku. A field the batch omits keeps its stored value, so a partial re-post cannot revive a retired item; send unit: null to clear a unit. A batch naming one SKU twice, or an empty batch, is refused.

Access: workspace_admin · API key catalogs:write

Authorization

api-key
headerAuthorizationBearer <sk_waylo_<lookup><secret><checksum>>

Path Parameters

id*string

Header Parameters

Authorization*string

Your API key.

Request Body

application/json
  1. body
[index: integer]?

Response Body

Created or updated

application/json
  1. response
[index: integer]?
Example Request
curl -X POST 'https://api.poc.app.waylovoice.ai/catalogs/string/items' \  -H 'Authorization: Bearer sk_waylo_...' \  -H 'Content-Type: application/json' \  -d '[  {    "sku": "string",    "displayName": "string"  }]'
Example Response
[  {    "id": "string",    "catalogId": "string",    "sku": "string",    "displayName": "string",    "productName": "string",    "productId": "string",    "brand": "string",    "attributes": {      "property1": "string",      "property2": "string"    },    "spokenForms": [      "string"    ],    "unit": "string",    "active": true,    "createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",    "createdByUserName": "string",    "updatedByUserId": "b38eaad7-8efa-49e7-b0aa-619916a3821e",    "updatedByUserName": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }]