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.
| Field | Type | Required | Description |
|---|---|---|---|
id | String | Yes | ID of the brand to update. |
name | String | No | Name of the brand. |
url | String | No | URL slug of the brand page. |
description | String | No | Description of the brand. Can be empty or null. |
image | String | No | URL of the brand image. The image is copied to your store's media library. |
sortOrder | Number | No | Display order. Lower numbers appear first. |
isFeatured | Boolean | No | Whether the brand is featured. |
isShow | Boolean | No | Whether the brand is visible on the storefront. |
isShowNavBar | Boolean | No | Whether the brand appears in the navigation bar. |
seo | Object | No | SEO settings with pageTitle, metaKeywords and metaDescription. |
metaFields | Array | No | Custom 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
| Field | Type | Description |
|---|---|---|
success | Boolean | true when the brands were updated. |
message | String | Confirmation message. |
Notes
- The response does not include the updated brands. Use Get All Brands with the
id:infilter to read them back. - Metafields you send are merged with the brand's existing metafields: a matching
codeis updated and a newcodeis added. seoreplaces the whole SEO object, so include every SEO field you want to keep.