Skip to main content

Update Multiple Brands

Updates several brands in a single request. Each item identifies a brand by its id and contains only the fields you want to change.

HTTP Request​

  • URL: /brands/multiple
  • Method: PUT
  • Headers:
    • accessToken: Required. Your API access token.
    • Content-Type: application/json
  • Required scope: None. Any valid access token can call this endpoint.

Request Body​

Send a JSON array. Each item in the array has the following fields.

FieldTypeRequiredDescription
idStringYesID of the brand to update.
nameStringNoName of the brand.
urlStringNoURL slug of the brand page.
descriptionStringNoDescription of the brand. Can be empty or null.
imageStringNoURL of the brand image. The image is copied to your store's media library.
sortOrderNumberNoDisplay order. Lower numbers appear first.
isFeaturedBooleanNoWhether the brand is featured.
isShowBooleanNoWhether the brand is visible on the storefront.
isShowNavBarBooleanNoWhether the brand appears in the navigation bar.
seoObjectNoSEO settings with pageTitle, metaKeywords and metaDescription.
metaFieldsArrayNoCustom field values, each with a code and a value. See Metafields.

cURL Example​

curl --location --request PUT '<BASE_URL>/brands/multiple' \
--header 'accessToken: <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '[
{
"id": "663a0f1e4587085935a4fa21",
"sortOrder": 1,
"isFeatured": true
},
{
"id": "663a0f1e4587085935a4fa22",
"metaFields": [
{ "code": "country_of_origin", "value": "Japan" }
]
}
]'

Response​

  • 200 OK: The brands were updated successfully.
  • 400 Bad Request: The access token is missing or invalid, or the request body is not valid (for example, an item has no id).

Sample JSON Response​

{
"success": true,
"message": "Brands updated successfully"
}

Response Details​

FieldTypeDescription
successBooleantrue when the brands were updated.
messageStringConfirmation message.

Notes​

  • The response does not include the updated brands. Use Get All Brands with the id:in filter to read them back.
  • Metafields you send are merged with the brand's existing metafields: a matching code is updated and a new code is added.
  • seo replaces the whole SEO object, so include every SEO field you want to keep.