v1

latestOpenAPI 3.0.12026-07-26381328555.2 KB
Categories

Add Category Attribute

Adds a new category attribute to the category. This current version of the Categories API includes localizedContent to support <a href="/pages/catalog-structure#multi-locale-catalogs">multi-locale catalogs</a>, which was not present in the previous API model. If you were a client prior to May 2024 and have upgraded your implementation to support this feature, you can still access category data that has not yet been rewritten to the new model by providing an x-api-version header set to "1".

post/commerce/catalog/admin/categories/{categoryId}/attributes

Path parameters

categoryIdinteger required

Query parameters

responseFieldsstring

limits which fields are returned in the response body

Request body

attributeDefinitionIdinteger nullable
fullyQualifiedNamestring nullable

Response

OK

attributeDefinitionIdinteger nullable
fullyQualifiedNamestring nullable