ProductsUpdate a Product Brand

Update a Product Brand

The request body is a single object, not an array. The endpoint has no path parameter. The product brand to update is matched by the identifier in the request body.

curl -X PUT "https://connect.wholechain.com/Integration/Brand" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: example_string" \
  -H "accept: */*" \
  -d '{
  "identifier": "BRAND-001",
  "name": "Oceanic Brand (Updated)",
  "description": "Updated premium seafood brand"
}'
{
  "identifier": "BRAND-001",
  "name": "Oceanic Brand (Updated)",
  "description": "Updated premium seafood brand"
}
PUT
/Integration/Brand
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Content-Typestring
Required

The media type of the request body

Options: application/json
header
X-API-KEYstring
Required

Your Wholechain API key.

header
acceptstring

Response content type.

Options: */*
identifierstring
Required

Required. Identifies the product brand to update.

namestring

New name of the product brand.

descriptionstring

New description of the product brand.

Request Preview
Response

Response will appear here after sending the request

Responses

identifierstring
namestring
descriptionstring

Introduction

This API updates an existing product brand in Wholechain.

A product brand is a brand that can be assigned to your products.

A product references a brand through the productBrand object in the product Details. See Create a Product and Update a Product.


Endpoint

MethodURL
PUThttps://connect.wholechain.com/Integration/Brand

Request Headers

HeaderDescriptionExample Value
X-API-KEYYour Wholechain API key.<YOUR_API_KEY>
Content-TypeContent type of the request. application/json and application/xml are accepted.application/json
acceptResponse content type.*/*

Request Body

The request body is a single product brand object. It uses the same fields as Create a Product Brand.

Column NameData TypeDescriptionRequired
identifierSTRINGIdentifies the product brand to update.Yes
nameSTRINGNew name of the product brand.No
descriptionSTRINGNew description of the product brand.No

Example Request

{
  "identifier": "BRAND-001",
  "name": "Oceanic Brand (Updated)",
  "description": "Updated premium seafood brand"
}

cURL

curl -X 'PUT' \
  'https://connect.wholechain.com/Integration/Brand' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY' \
  -d '{
    "identifier": "BRAND-001",
    "name": "Oceanic Brand (Updated)",
    "description": "Updated premium seafood brand"
  }'

Responses

200 — OK

The product brand is updated. The response body is a product brand object with the fields identifier, name, and description.

{
  "identifier": "BRAND-001",
  "name": "Oceanic Brand (Updated)",
  "description": "Updated premium seafood brand"
}

404 — Not Found

No product brand with this identifier exists.

{
  "type": "https://tools.ietf.org/html/rfc9110#section-15.5.5",
  "title": "Product brand not found: BRAND-001",
  "status": 404,
  "traceId": "<trace-id>"
}

400 — Bad Request

The X-API-KEY header is missing, or the request body is not valid JSON.

{
  "type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
  "title": "One or more validation errors occurred.",
  "status": 400,
  "errors": {
    "X-API-KEY": [
      "The apiKey field is required."
    ]
  },
  "traceId": "<trace-id>"
}

Important Notes

  • The request body is a single object, not an array.
  • The endpoint has no path parameter. The product brand to update is matched by the identifier in the request body.
  • identifier is required.
  • In the Update a Product response, the brand assigned to a product is returned as productBrand (with id, name, description, externalIdentifier, and profileImagePreSignedUrl).