bosOnline
  1. Product
bosOnline
  • bosOnline
  • BosOnline
    • auth
      • Register
      • Login
      • Refresh Token
    • Product
      • Inventory
        GET
      • Download Inventory
        POST
      • Download Variant
        POST
      • Update Inventory
        PUT
      • Get Category
        GET
      • Get Edit Product
        GET
      • Product List
        GET
      • Edit Product Detail (Product Detail)
        PUT
      • product
        POST
      • Delete Product
        DELETE
      • Edit Status Product (Product List)
        PATCH
      • Download Product (Product List)
        POST
      • Product Detail
        GET
      • Product Variant
        GET
      • Edit Status Variant (Product Detail)
        PATCH
      • Update Variant
        PUT
      • Upload Image
        POST
      • Cek SKU
        GET
    • Form
      • Form
      • Edit Form
      • Form Detail
      • Edit Status Form (Product Detail)
      • Form list
      • Custom Success Page
      • Custom Success Page
      • Edit Success Page
    • Order
      • Checkout
        • Request Create Order
        • Request Create Order Abandoned
      • Follow up
        • Follow Up
        • Follow Up Attempts
      • Edit Choose Courier
      • Edit Payment Method
      • Detail Order
      • Edit Customer Order
      • Edit Another Fee
      • Order List
      • Confirm Payment
      • Update Payment Method
      • Update Pengiriman Kurir
      • Update Status Order
    • Store
      • Custom Domain
        • Set Default Subdomain
        • Subdomain
        • Create Subdomain
        • Verifikasi Subdomain
        • Get Revenue
      • Store
      • Cek SubDomain
      • Get Region
      • Store
      • Warehouse
      • On Boarding
      • Recap Order
      • Recap Store
      • Recap Product
      • Recap CS
      • Tips
      • Announcement
      • Edit Subdomain
    • API Boscod
      • Cek Ongkir
      • Wilayah
      • Tracking Order
      • Reset Password
      • Warehouse
      • Order Shipping
      • winpay service
    • Profile
      • Warehouse
      • Edit Warehouse
      • Profile
      • Data Deletion
      • Default Warehouse
      • Me
    • Staff
      • Staff
      • Delete staff
      • Create Staff
      • Edit Status Staff
    • Rekening
      • Bank List
      • Get Rekening List
      • Rekening Detail
      • Create Rekening
      • Edit Rekening
      • Delete Rekening
      • Edit Status Rekening
    • Voucher
      • List Voucher
      • Edit Voucher Status
      • Voucher
      • List Voucher Checkout
      • Delete Voucher
  • AdminBosOnline
    • Dashboard
      • Recap Store
      • Revenue
      • Order Recap
  1. Product

Edit Product Detail (Product Detail)

Developing
PUT
/store/products/{id}
BosOnline/Product
Endpoint ini digunakan untuk edit product detail di halaman Product Detail.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/store/products/ESB-006' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Biji kopi arabica",
    "description": "Kopi pilihan asli",
    "path_url": "biji-kopi-arabica",
    "category_id": 1,
    "weight": 1000,
    "length": 10,
    "height": 10,
    "width": 10,
    "publish_rate": 50000,
    "price": 45000,
    "hpp": 40000,
    "qty": 10000,
    "image": [
        {
            "file_name": "1750661540-444.png"
        }
    ],
    "attributes": [
        {
            "name": "Kemasan Kopi",
            "items": [
                "halus",
                "sedang"
            ],
            "priority": 1
        },
        {
            "name": "Tingkat Giling",
            "items": [
                "1000 gr",
                "2000 gr"
            ],
            "priority": 2
        }
    ],
    "varian_items": [
        {
            "name": "Halus 1000 gr",
            "sku": "ESB-006-01",
            "stok": 101,
            "min_qty": 100,
            "weight": 100,
            "length": 10,
            "height": 10,
            "width": 10,
            "price": 45000,
            "publish_rate": 50000,
            "hpp": 40000,
            "status": 1
        },
        {
            "name": "Halus 2000 gr",
            "sku": "ESB-006-02",
            "varian_stok": 302,
            "min_qty": 100,
            "weight": 200,
            "length": 10,
            "height": 10,
            "width": 10,
            "price": 65000,
            "publish_rate": 70000,
            "hpp": 60000,
            "status": 0
        },
        {
            "name": "sedang 1000 gr",
            "sku": "ESB-006-03",
            "stok": 101,
            "min_qty": 100,
            "weight": 100,
            "length": 10,
            "height": 10,
            "width": 10,
            "price": 45000,
            "publish_rate": 50000,
            "hpp": 40000,
            "status": 1
        },
        {
            "name": "sedang 2000 gr",
            "sku": "ESB-006-04",
            "stok": 302,
            "min_qty": 100,
            "weight": 200,
            "length": 10,
            "height": 10,
            "width": 10,
            "price": 65000,
            "publish_rate": 70000,
            "hpp": 60000,
            "status": 0
        }
    ],
    "product_cs": [
        {
            "cs_id": 5
        }
    ],
    "order_status": 1
}'
Response Response Example
200 - Success
{
    "message": "Product Updated"
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
Example:
ESB-006
Body Params application/json
product_name
string  | null 
required
Example:
Biji kopi arabica
sku
string  | null 
required
Example:
ESB-001
product_image
array [object {2}] 
optional
file_name
string 
required
Example:
logo 2.png
file_path
string 
required
Example:
product/2987163211/ESB-001
path_url
string  | null 
required
Default:
auto generate product name
Example:
biji-kopi-arabica
category_id
integer  | null 
required
Example:
1
product_weight
integer  | null 
required
Default:
1
Example:
1
product_length
integer  | null 
required
Default:
10
Example:
10
product_height
integer  | null 
required
Default:
10
Example:
10
product_width
integer  | null 
required
Default:
10
Example:
10
publish_rate
integer  | null 
optional
Default:
0
Example:
45000
product_price
integer  | null 
required
Example:
50000
hpp_product
integer  | null 
required
Example:
40000
product_qty
integer  | null 
required
Default:
1
Example:
1000
attributes
array [object {3}] 
optional
name
string  | null 
required
Example:
Kemasan Kopi
atribut_items
array[string | null]
required
priority
integer 
required
Example:
1
varian_items
array [object {9}] 
required
nama
string 
required
Example:
Halus 1000 gr
sku
string  | null 
required
Example:
ESB-001-01
varian_stok
integer  | null 
required
Default:
1
Example:
101
min_qty
integer  | null 
required
Default:
0
Example:
0
varian_weight
integer  | null 
required
Default:
1
Example:
1
varian_price
integer  | null 
required
Example:
50000
varian_publish_rate
integer  | null 
optional
Default:
0
Example:
45000
varian_hpp
integer  | null 
required
Example:
40000
status
enum<integer>  | enum<null> 
required
Allowed values:
01
Default:
1
Example:
1
cs_code
string 
optional
Example:
321321
Examples

Responses

🟢200OK
application/json
Body
message
string 
required
🔴503Service Unavailable
🟠404Record not found
🟠400Invalid input
Modified at 2025-06-23 06:54:29
Previous
Product List
Next
product
Built with