Superface

product-management/product-update

product-management/product-update@0.0.0

Updates an existing product with new information.

Input
product
Result
product

Structure details

Input (object)

product
body_html
The description of the product.
handle
A unique human-readable string for the product.
id
The unique numeric identifier for the product.
images
id
The unique numeric identifier for the image.
product_id
The unique numeric identifier for the product.
position
The position of the image in the product's image list.
src
The URL of the image.
options
id
The unique numeric identifier for the option.
product_id
The unique numeric identifier for the product.
name
The name of the option.
position
The position of the option in the product's option list.
values
product_type
The type of the product.
status
The status of the product.
tags
A string of comma-separated tags.
template_suffix
The suffix of the Liquid template used for the product page.
title
The title of the product.
variants
id
The unique numeric identifier for the variant.
product_id
The unique numeric identifier for the product.
option1
The value of the first option.
position
The position of the variant in the product's variant list.
price
The price of the variant.
sku
A unique identifier for the variant.
title
The title of the variant.
vendor
The name of the product's vendor.

Example

{
  "product": {
    "body_html": "",
    "handle": "",
    "id": 42,
    "images": [
      {
        "id": 42,
        "product_id": 42,
        "position": 42,
        "src": ""
      }
    ],
    "options": {
      "id": 42,
      "product_id": 42,
      "name": "",
      "position": 42,
      "values": [
        ""
      ]
    },
    "product_type": "",
    "status": "",
    "tags": "",
    "template_suffix": "",
    "title": "",
    "variants": [
      {
        "id": 42,
        "product_id": 42,
        "option1": "",
        "position": 42,
        "price": 42,
        "sku": "",
        "title": ""
      }
    ],
    "vendor": ""
  }
}

Result (object)

product
body_html
created_at
handle
id
images
id
product_id
position
created_at
updated_at
width
height
src
variant_ids
options
id
product_id
name
position
values
product_type
published_at
published_scope
status
tags
template_suffix
title
updated_at
variants
barcode
compare_at_price
created_at
fulfillment_service
grams
weight
weight_unit
id
inventory_item_id
inventory_management
inventory_policy
inventory_quantity
option1
position
price
product_id
requires_shipping
sku
taxable
title
updated_at
vendor

Example

{
  "product": {
    "body_html": "",
    "created_at": "",
    "handle": "",
    "id": 42,
    "images": [
      {
        "id": 42,
        "product_id": 42,
        "position": 42,
        "created_at": "",
        "updated_at": "",
        "width": 42,
        "height": 42,
        "src": "",
        "variant_ids": [
          {}
        ]
      }
    ],
    "options": {
      "id": 42,
      "product_id": 42,
      "name": "",
      "position": 42,
      "values": [
        ""
      ]
    },
    "product_type": "",
    "published_at": "",
    "published_scope": "",
    "status": "",
    "tags": "",
    "template_suffix": "",
    "title": "",
    "updated_at": "",
    "variants": [
      {
        "barcode": "",
        "compare_at_price": "",
        "created_at": "",
        "fulfillment_service": "",
        "grams": 42,
        "weight": 42,
        "weight_unit": "",
        "id": 42,
        "inventory_item_id": 42,
        "inventory_management": "",
        "inventory_policy": "",
        "inventory_quantity": 42,
        "option1": "",
        "position": 42,
        "price": 42,
        "product_id": 42,
        "requires_shipping": true,
        "sku": "",
        "taxable": true,
        "title": "",
        "updated_at": ""
      }
    ],
    "vendor": ""
  }
}