Pular para o conteúdo principal
POST
/
api
/
workspace
/
{workspaceId}
/
catalog
/
products
Create product
curl --request POST \
  --url https://app.alana.shopping/api/workspace/{workspaceId}/catalog/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "price": 1,
  "catalog_id": "<string>",
  "description": "<string>",
  "brand": "<string>",
  "category_path": [
    "<string>"
  ],
  "original_price": 1,
  "currency": "USD",
  "primary_image_url": "<string>",
  "sku": "<string>",
  "gtin": "<string>",
  "availability": "in_stock",
  "attributes": {}
}
'
{
  "product": {
    "id": "<string>",
    "workspaceId": "<string>",
    "title": "<string>",
    "price": 123,
    "currency": "<string>",
    "availability": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "catalogId": "<string>",
    "description": "<string>",
    "brand": "<string>",
    "categoryPath": [
      "<string>"
    ],
    "originalPrice": 123,
    "primaryImageUrl": "<string>",
    "sku": "<string>",
    "gtin": "<string>",
    "attributes": {},
    "optimizationScore": 50,
    "feedReady": true,
    "createdBy": "<string>"
  }
}

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication via Auth0. Users authenticate through Auth0 Universal Login. Include the access token in the Authorization header: Authorization: Bearer <token>

Parâmetros de caminho

workspaceId
string
obrigatório

The workspace ID

Pattern: ^ws_[a-z0-9]+$

Corpo

application/json
title
string
obrigatório
Required string length: 1 - 500
price
number
obrigatório
Intervalo obrigatório: x >= 0
catalog_id
string | null
description
string | null
Maximum string length: 5000
brand
string | null
category_path
string[]
original_price
number | null
Intervalo obrigatório: x >= 0
currency
string
padrão:USD
primary_image_url
string<uri> | null
sku
string | null
gtin
string | null
availability
string
padrão:in_stock
attributes
object

Resposta

Product created successfully

product
object
obrigatório
Última modificação em 18 de maio de 2026