Skip to main content

Update Product Variant

PUT 

/commerce/products/:productId/variants/:variantId

Update product variant for a specified user and credential set

Request

Path Parameters

    productId stringrequired

    ID of the product which the variant will be added to

    variantId stringrequired

    The variant id

Query Parameters

    credentialId stringrequired

    The ID of the credential.

Header Parameters

    Authorization stringrequired

    Default value: bearer YOUR_API_KEY

Body

    price double

    The price of the variant.

    sku string

    The SKU (stock-keeping unit) of the variant.

    optionValues

    object[]

    An array of objects containing the option name and value for the variant.

  • Array [

  • name stringrequired
    value stringrequired
  • ]

  • weight

    object

    An object containing the weight value and unit of measure for the variant.

    value stringrequired
    unit stringrequired
    remoteFields json

    An object containing remote fields that are not supported by the common model. The keys are the names of the fields of the corresponding resource in the remote app, and the values can be strings, numbers, arrays or objects.

Responses

200

Schema

    any

Loading...