Tool to manage menus.
GET http://[host-proxy]/api/view/MenuTool/schema/?hierarchy=[hierarchy]&format=json&schema=1
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"source_menu": {
"type": "string",
"description": "The menu that will be merged or updated from.",
"title": "Source Menu"
},
"hierarchy_level": {
"default": "{{ fn.hierarchy_friendly_path }}",
"readonly": true,
"type": "string",
"title": "Hierarchy level"
},
"new_menu_name": {
"type": "string",
"description": "Name of the menu to create.",
"title": "New Menu Name"
},
"description": {
"default": "Menu Tool",
"readonly": true,
"type": "string",
"title": " "
},
"target_hierarchy": {
"default": "{{ fn.hierarchy_friendly_path }}",
"type": "string",
"title": "Target Hierarchy"
},
"backup": {
"type": "boolean",
"description": "When selected a backup of the target menu will be made.",
"title": "Backup Menu"
},
"notes": {
"default": "This view allows you to merge menu items from one menu to another.",
"readonly": true,
"type": "string",
"title": " "
},
"menu_placement": {
"default": "after",
"choices": [
{
"value": "after",
"title": "After"
},
{
"value": "before",
"title": "Before"
}
],
"type": "string",
"description": "Menu Operation",
"title": "Menu Placement"
},
"source_menu_list": {
"type": "string",
"title": "Source Menu List"
},
"menu_operation": {
"choices": [
{
"value": "create_snippet",
"title": "Create Snippet"
},
{
"value": "merge",
"title": "Merge"
}
],
"type": "string",
"description": "Menu Operation",
"title": "Menu Operation"
},
"new": {
"type": "boolean",
"description": "Create a new menu with a custom name.",
"title": "New Menu"
},
"target_menu": {
"type": "string",
"description": "The menu that will be updated or merged into.",
"title": "Target Menu"
},
"target_menu_list": {
"type": "string",
"title": "Target Menu List"
}
}
}