Skip to main content

Update product

PUT 

/api/products/:id

Update product

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

Body

    quick_sale boolean
    name string
    slug string
    sku string
    description string
    original_price number
    stock integer
    shipping_required boolean
    price number
    brand_id string
    inventory_track boolean
    categories number[]
    barcode string
    barcodes string[]
    inventory_type InventoryType (string)

    Possible values: [volume, unit]

    inventory_quantity integer

Responses

Successful response

Schema

    id string
    quick_sale booleannullable
    name string
    slug stringnullable
    sku string
    description string
    stock integernullable
    shipping_required boolean
    price float
    original_price floatnullable
    brand_id stringnullable
    created_at date-time
    updated_at date-time
    inventory_track booleannullable
    inventory_type InventoryType (string)

    Possible values: [volume, unit]

    inventory_quantity integernullable

    brand

    object

    nullable

    id string
    name string
    slug string
    image_url stringnullable
    categories number[]
    barcodes string[]
Loading...