Skip to main content

Get All Brands

Retrieves all product brands.

Response

boolean
required
Indicates if the request was successful
array
required
Array of brand objects
number
Brand ID
string
Brand name
string
URL to the brand logo image (if uploaded)

Get Brand by ID

Retrieves a specific brand by its ID.

Path Parameters

number
required
The unique identifier of the brand

Response

boolean
required
Indicates if the request was successful
object
Brand object
number
Brand ID
string
Brand name
string
URL to the brand logo image

Error Responses


Create Brand

Creates a new brand with optional logo upload.

Authentication

Note: This endpoint requires appropriate permissions to create brands.

Request Body

This endpoint accepts multipart/form-data for file uploads.
string
required
Name of the brand
Brand logo image file (optional)Accepted formats: Common image formats (JPG, PNG, etc.)

Response

boolean
required
Indicates if the request was successful
object
Created brand object
number
Brand ID
string
Brand name
string
URL to the uploaded brand logo

Error Responses


Delete Brand

Deletes a brand. Brands with associated products cannot be deleted.

Authentication

Note: This endpoint requires appropriate permissions to delete brands.

Path Parameters

number
required
The unique identifier of the brand to delete

Response

boolean
required
Indicates if the request was successful
string
Success message
string
Error message if deletion failed (e.g., brand has associated products)

Error Responses