Skip to content

Create a menu

Endpoint: https://api.youcan.shop/menus

Method: POST

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

[201] Created

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