Skip to main content

Update option group

PUT 

/api/v2/catalog/options/:group_id

Update an option group

You can provide either a business_id or a product_id they are mutually exclusive.

Request

Path Parameters

    group_id stringrequired

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

    Unique ID of the product option group

    Example: 95a1o6hmh0qv

Body

required

    name string

    Possible values: non-empty

    Name of the product option group

    options

    object[]

  • 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 integer

    Default value: 0

    Used to order the item, order defaults to ascending.

Responses

Schema

    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...