Skip to main content

Updates an existing product with the provided information.

PATCH 

/api/company/:company_id/product/:product_id

Update a product by ID

Request

Path Parameters

    company_id uuidrequired

    The id of the company

    product_id uuidrequired

    The id of the product

Body

required
    name stringrequired

    The name of the product.

    description stringrequired

    The description of the product. Can be null.

Responses

Detailed information about the product

Schema
    id uuidrequired

    The unique identifier of the product.

    name stringrequired

    The name of the product.

    company_id uuidrequired

    The unique identifier of the company.

    description stringrequired

    The description of the product. Can be null.

    images object[]required

    An array of image URLs associated with the product.

  • Array [
  • id uuidrequired

    The unique identifier of the product image.

    company_id uuidrequired

    The unique identifier of the company.

    url urlrequired

    The URL of the product image.

  • ]
Loading...