Change a menu
Changes a navigation menu's items with a list of changes, applied in order, all or nothing (if one fails, none are kept). Actions: "add" (a link to page_id, post_id, category_id or url; optional title, parent, after, new_tab), "update" (item_id plus title, a new link target, or new_tab), "move" (item_id plus parent and/or after), "remove" (item_id; its sub-items move up a level). parent is a menu item id (0 for top level); after is the item id to place it after (omit for the end). Changes are live immediately. The returned snapshot_id undoes them with restore-menu.