Skip to main content
PATCH
Update a Catalog product

Poznámky k použití

  • attributes provádí částečné sloučení. Vynechané existující hodnoty zůstávají beze změny.
  • Pro ochranu před zastaralým zápisem odešlete expected_updated_at z posledního načtení.
  • attribute_extension_ids připojí produktové Attributes. Vynechání pole nebo prázdné pole zachová existující rozšíření.
  • Rozšíření odpojí pouze remove_attribute_extension_ids. Odpojení atomicky odstraní také jejich uložené hodnoty nebo Relation odkazy.
  • Attribute vlastněný základním Product Schema nelze odpojit.

Autorizace

Authorization
string
header
povinné

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

Parametry cesty

id
string<uuid>
povinné

Tělo

application/json
attributes
object
povinné

Sparse values are merged with the current public Attribute values.

expected_updated_at
string<date-time>
attribute_extension_ids
string<uuid>[]

Active Shared Attribute UUIDs to attach. Existing product-only Attributes are preserved when this field is omitted or empty.

Maximum array length: 2000
remove_attribute_extension_ids
string<uuid>[]

Product-only Shared Attribute UUIDs to detach. Their product values or Relation links are removed atomically; base-schema Attributes cannot be removed here.

Maximum array length: 2000

Odpověď

Catalog product updated.

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.