Light Mode
Update Brand
PUT
/brands/{brand}Last modified:Â 2 months ago
This endpoint allows you to update brand details by passing the brand
as a path parameter.
:::info[Information]
- All variables in the Update Brand body request are optional.
- Updating one variable at a time is possible, but at least one of the variables must be in the body request payload. Otherwise, an error will be shown if you send an empty body request payload.
:::
Request
Path Params
brand
integerÂ
required
The Brand ID. List of Brand IDs can be found here.
Body Params application/json
name
stringÂ
required
logo
stringÂ
required
banner
stringÂ
required
description
stringÂ
required
metadata_title
stringÂ
required
metadata_description
stringÂ
required
metadata_url
stringÂ
required
translations
objectÂ
required
en
objectÂ
required
Example
{
"name": "ابل",
"logo": "",
"banner": "",
"description": "شركه ابل",
"metadata_title": "ابل",
"metadata_description": "شركه ابل",
"metadata_url": "apple",
"translations": {
"en": {
"name": "Apple",
"description": "Apple brand",
"metadata_title": "Apple",
"metadata_description": "Apple brand",
"metadata_url": "apple",
}
}
}
Request samples
Responses
Brand details updated successfully.(201)
Record Not Found(404)
Error Validation(422)
Brand details updated successfully.
HTTP Code:Â 201
Content Type :Â JSONapplication/json
Data Schema
No schema defined
Example
{
"success": true,
"status": 200,
"data": {
"id": 883017162,
"name": "بربري",
"description": "بربري",
"banner": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"logo": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"ar_char": "ب",
"en_char": "b",
"metadata": {
"title": "Zara brand",
"description": "Brand awareness seo",
"url": "zara/item"
}
}
}
Last modified: 2 months ago