Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 2cf7c55

Browse files
authored
Merge pull request #951 from magento/kh_2.2_catalog_rest_57116
adding a list of category custom attributes
2 parents 8509e99 + 57000c5 commit 2cf7c55

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

guides/v2.0/rest/catalog-notes.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,38 @@ github_link: rest/catalog-notes.md
1212

1313
## POST V1/categories
1414

15-
When you create a {% glossarytooltip 50e49338-1e6c-4473-8527-9e401d67ea2b %}category{% endglossarytooltip %} from Admin, you have the option to configure display and {% glossarytooltip ae8f7f2b-ddfb-41ed-bec3-bed191406fdd %}search engine optimization{% endglossarytooltip %} settings. The `POST V1/categories` {% glossarytooltip 786086f2-622b-4007-97fe-2c19e5283035 %}API{% endglossarytooltip %} does not accept any of these parameters directly, but they can be defined as custom attributes, as shown in the following example.
15+
When you create a {% glossarytooltip 50e49338-1e6c-4473-8527-9e401d67ea2b %}category{% endglossarytooltip %} from Admin, you have the option to configure display and {% glossarytooltip ae8f7f2b-ddfb-41ed-bec3-bed191406fdd %}search engine optimization{% endglossarytooltip %} settings. To configure these settings using REST, you can specify the following parameters as `attribute_code` values:
16+
17+
```
18+
all_children
19+
children
20+
children_count
21+
custom_apply_to_products
22+
custom_design
23+
custom_design_from
24+
custom_design_to
25+
custom_layout_update
26+
custom_use_parent_settings
27+
default_sort_by
28+
description
29+
display_mode
30+
filter_price_range
31+
image
32+
is_anchor
33+
landing_page
34+
meta_description
35+
meta_keywords
36+
meta_title
37+
page_layout
38+
path
39+
path_in_store
40+
url_key
41+
url_path
42+
```
43+
44+
Third-party modules may define other custom attributes.
45+
46+
The following example uses the `POST V1/categories` call to assign four custom attributes to the "My New Category" category.
1647

1748
{% highlight json %}
1849

0 commit comments

Comments
 (0)