Update Brand
Update an existing product brand.
Endpoint
Authentication
Required (Store role)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | Brand ID |
Request Body
Content-Type: multipart/form-data
Form Fields
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | No | Brand name |
image |
file | No | Brand logo/image |
Response
Success (200 OK)
{
"id": 1,
"name": "Updated Brand Name",
"image": "https://...",
"created": "2025-01-15T10:30:00Z"
}
Error Responses
Brand Not Found (404)
Missing ID Parameter (400)
Example Request
curl -X PUT "https://api.luxmart.site/v1/products/brand/?id=1" \
-H "Authorization: Token your_access_token" \
-F "name=Updated Brand Name" \
-F "image=@/path/to/logo.jpg"
Notes
- Only provided fields are updated
- Brand image is uploaded to S3 if provided