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