Skip to content

Update a menu

Endpoint: https://api.youcan.shop/menus/{id}

Method: PUT

Required Scopes

  • edit-menus

Parameters

Param NameParam TypeDescriptionRequired
namestringNameyes
slugstringURL slugyes
linksarray of objects [Link], nullArray of linksno
links.childrenarray of objects [[Link childern](#Links children)], nullArray of links chillersno

Response

[200] Ok

json
{
    "id": "02360486-292e-4bd2-bcae-67b281414c31",
    "name": "Test manue 02 updated",
    "slug": "page-08",
    "is_default": false,
    "links": [
        {
            "id": "5842c635-41f4-40fb-8cdb-5bce1f01549f",
            "name": "Test link 03",
            "link": null,
            "link_to": 4,
            "link_to_text": "External",
            "order": 1,
            "children": []
        }
    ]
}