v1

latestOpenAPI 3.0.12026-08-0620949.4 KB
Brands

Creates or updates a brand

Creates a new brand or updates an existing brand based on the brand's id. When product_ids is set, each product in product_ids is linked to this brand. When a product in product_ids does not exist, a stub product is created.

post/api/v1/languages/{language_id}/brands

Path parameters

language_idstring required

Request body

Example request

{
  "brand": {
    "name": "My Brand",
    "url": "www.example.com",
    "content": "lorem ipsum",
    "product_ids": [
      1,
      2,
      3
    ]
  }
}

Response

Brand successfully saved

messagestring

Example response

{
  "brand": {
    "name": "My Brand",
    "url": "www.example.com",
    "content": "lorem ipsum",
    "product_ids": [
      1,
      2,
      3
    ]
  },
  "message": "Brand successfully saved"
}