Modo Claro
Update Brand
PUT
/brands/{brand}Last modified: 17 days 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
Parâmetros Path
brand
integer
requerido
The Brand ID. List of Brand IDs can be found here.
Parâmetros Bodyapplication/json
name
string
requerido
logo
string
requerido
banner
string
requerido
description
string
requerido
metadata_title
string
requerido
metadata_description
string
requerido
metadata_url
string
requerido
translations
object
requerido
en
object
requerido
Exemplo
{
"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
Respostas
Brand details updated successfully.(201)
Record Not Found(404)
Error Validation(422)
Brand details updated successfully.
HTTP Code: 201
Content Type : JSONapplication/json
Esquema de Dados
No schema defined
Exemplo
{
"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: 17 days ago