Skip to content

Example 1

This example demonstrates how to update a Product using the Put API endpoint.


Body Structure (form-data)

The request should be sent as form-data, including the fields to be updated.

alt text


Response Structure

{
    "message": "Successfully updated  with ID 1",
    "payload": {
        "id": 1,
        "product_name": "AeroCool Linen Summer Shirt",
        "sku": "FMS-ACLS-001",
        "short_description": "Breathable slim-fit summer linen shirt for men.",
        "full_description": "A lightweight breathable linen shirt designed for hot summer days. Made from a linen-cotton blend that enhances airflow and reduces sweat retention. Tailored slim-fit design suitable for casual wear, beach outings, or smart-casual occasions. Features reinforced stitching and coconut-shell buttons for a premium finish.",
        "price": "39.99",
        "sales_price": "29.99",
        "tax_rate": 20,
        "stock_quantity": "3850",
        "weight": "220.00",
        "dimensions": "78cm (length) × 52cm (chest width flat) × 2cm (packaged thickness)",
        "release_date": "2025-03-15",
        "last_updated": "2026-02-10 13:42:00",
        "product_category_id": 157,
        "product_sub_categories_id": "160",
        "tags_id": "163",
        "is_active": "1",
        "is_featured": 1,
        "is_digital": 0,
        "main_image_id": 17,
        "instruction_manual_id": 18,
        "image_gallery_id": "19,20",
        "product_files_id": "21,22",
        "review_count": "1245",
        "popularity_index": "87",
        "availability_status_id": "24",
        "shipping_class_id": 166,
        "internal_notes": "Strong seasonal seller; restock before May each year.",
        "created_at": "2026-05-07 10:57:45",
        "updated_at": "2026-05-07 11:01:10",
        "deleted_at": null,
        "author_id": 1,
        "group_id": null
    }
}

Fields

Field Type
product_name Varchar
sku Varchar
short_description Text Area
full_description Text Area
price Decimal
sales_price Decimal
tax_rate Float
stock_quantity Integer
weight Decimal
dimensions Varchar
release_date Date
last_updated Date Time
product_category_id Select
product_sub_categories_id Multi Select
tags_id Multi Select
is_active Checkbox
is_featured Checkbox
is_digital Checkbox
main_image_id Image Upload
instruction_manual_id File Upload
image_gallery_id Multiple Image Upload
product_files_id Multiple File Upload
review_count Calculated
popularity_index Integer
availability_status_id Double
shipping_class_id Radio Button
internal_notes Select
rating_score Text Area