v55

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-012046146.0 KB
CategoryMetadata

Create category attribute metadata

When creating category attribute metadata:

  • Each category attribute requires a unique code and source.
  • Use the dataType field to define the data type for the category attribute.

To update existing category attribute metadata, use the update operation.

post/v1/catalog/categories/metadata

Headers

Authorizationstring required

Authorization Bearer token

Content-Type'application/json' required
Content-Encoding'gzip'

Use this header if the payload is compressed with gzip.

Request body

codestring required

Attribute code

labelstring required

Label for the attribute that is displayed in user interfaces.

dataType'TEXT' | 'DECIMAL' | 'INTEGER' | 'BOOLEAN' required

Data type

Example request

[
  {
    "source": {
      "locale": "English"
    },
    "label": "Attribute Name",
    "dataType": "TEXT"
  }
]

Response

All items accepted and will be processed asynchronously