当从管理员创建类别时,您可以配置显示和搜索引擎优化设置。POST V1/categories API不直接接受这些参数中的任何一个, 但它们可以定义为自定义属性,如以下示例所示。
POST V1/categories
{ "category": { "parent_id": 2, "name": "My New Category", "is_active": true, "level": 2, "include_in_menu": true, "custom_attributes":[ { "attribute_code":"description", "value":"Women category description" }, { "attribute_code":"meta_title", "value":"Women meta title" }, { "attribute_code":"meta_keywords", "value":"Women meta keywords" }, { "attribute_code":"meta_description", "value":"Women meta description" }, { "attribute_code":"url_key", "value":"women-test-key" } ] } }