Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions src/guides/v2.3/rest/modules/catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Third-party modules may define other custom attributes.

The following example uses the `POST V1/categories` call to assign four custom attributes to the "My New Category" category.

## Request

```json
{
"category": {
Expand Down Expand Up @@ -76,3 +78,59 @@ The following example uses the `POST V1/categories` call to assign four custom a
}
}
```

## Response
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs blank line after title

```json
{
"id": 42,
"parent_id": 2,
"name": "My New Category",
"is_active": true,
"position": 8,
"level": 2,
"children": "",
"created_at": "2020-12-17 10:38:01",
"updated_at": "2020-12-17 10:38:01",
"path": "1/2/42",
"available_sort_by": [],
"include_in_menu": true,
"custom_attributes": [
{
"attribute_code": "description",
"value": "Women category description"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"value": "Women category description"
"value": "Women's category description"

},
{
"attribute_code": "meta_title",
"value": "Women meta title"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"value": "Women meta title"
"value": "Women's meta title"

},
{
"attribute_code": "meta_keywords",
"value": "Women meta keywords"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"value": "Women meta keywords"
"value": "Women's meta keywords"

},
{
"attribute_code": "meta_description",
"value": "Women meta description"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"value": "Women meta description"
"value": "Women's meta description"

},
{
"attribute_code": "is_anchor",
"value": "1"
},
{
"attribute_code": "path",
"value": "1/2/42"
},
{
"attribute_code": "children_count",
"value": "0"
},
{
"attribute_code": "url_key",
"value": "women-test-key"
},
{
"attribute_code": "url_path",
"value": "women-test-key"
}
]
}
```