Skip to main content
POST
cURL

Poznámky k použití

  • schema_id vybírá opakovaně použitelné Product Schema produktu.
  • Klíče v attributes musí odpovídat aktivním Attributes v tomto schématu nebo v attribute_extension_ids.
  • attribute_extension_ids připojí existující firemní Attributes pouze k tomuto produktu. Nepřidá je do opakovaně použitelného Product Schema.
  • Hodnoty Relation i Attribute se ověří před vytvořením produktu. Při chybě validace se nevytvoří nic.
Nové produkty vytvořené přes API používají výchozí zdroj a stav životního cyklu handleru. Místo předpokladu zkontrolujte vrácené source a status.

Příklady

Example response

Autorizace

Authorization
string
header
povinné

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Tělo

application/json
schema_id
string<uuid>
povinné
attributes
object
povinné
attribute_extension_ids
string<uuid>[]

Active Shared Attribute UUIDs to attach only to this product. Attributes already owned by the base schema remain schema fields and are not duplicated here.

Maximum array length: 2000

Odpověď

Catalog product created.

id
string<uuid>
povinné
company_id
string<uuid>
povinné
schema_id
string<uuid>
povinné
source
enum<string>
povinné
Dostupné možnosti:
manual,
product_extraction,
shopify
external_id
string | null
povinné
status
enum<string>
povinné
Dostupné možnosti:
draft,
active,
archived
attributes
object
povinné

Values backed by active Shared Attributes from the base schema or attribute_extensions.

attribute_extensions
object[]
povinné
Maximum array length: 2000
created_at
string<date-time>
povinné
updated_at
string<date-time>
povinné
deleted_at
string<date-time> | null
povinné
relations
object

Hydrated relation values. Present on the single-product GET response.