Skip to main content

Unlink or delete option group

DELETE 

/api/v2/catalog/products/:product_id/options

Unlink or delete option groups from a product

If the option group is not linked to any other product, it will be deleted. Otherwise, it will be unlinked

Request

Path Parameters

    product_id stringrequired

    Possible values: >= 12 characters and <= 12 characters, Value must match regular expression ^[0-9a-z]+$

    Unique ID of the product

    Example: bk8h0y2r68ke

Body

array

required

  • Array [

  • string

    Possible values: >= 12 characters and <= 12 characters, Value must match regular expression ^[0-9a-z]+$

  • ]

Responses

Schema

  • Array [

  • id stringrequired

    Possible values: >= 12 characters and <= 12 characters, Value must match regular expression ^[0-9a-z]+$

    Unique ID of the product option group

    name stringrequired

    Possible values: non-empty

    Name of the product option group

    business_id uuid

    Business id linked to the group

    options

    object[]

    required

  • Array [

  • name stringrequired

    Possible values: non-empty

    Name of the product option

    price decimalrequired

    Default value: 0

    The additional price of the option, can be 0 or negative

    sku stringnullable

    The SKU of the option

    ref_code stringnullable

    The reference code of the option

    available boolean

    Default value: true

    Mark the option as not available

  • ]

  • order integerrequired

    Default value: 0

    Used to order the item, order defaults to ascending.

    created_at date-timerequired
    updated_at date-timerequired
  • ]

Loading...