Create Menu
Creates a menu. Needs a key with Website Content: Read and Write (website-content:write).
How each item is stored:
- With
page_id, it links to that page. - Otherwise, a
urlthat is the path of one of the website’s pages links to the page, so the link follows a later rename. The query string, a leading/index.phpand slashes at either end are ignored, and/matches thehomepagepage. - With no
url, it is a heading with no link (placeholder). - Any other path starting with
/is kept as an internal URL. http(s)://,mailto:andtel:links are external URLs.
Send pages before menus so their links resolve to pages.
If a menu with the same name already exists, this returns 422. Use Upsert Menu when you do not know whether it exists.
Headers
GorillaDash-Api-Key
Gorilla Dash API Key
GorillaDash-Api-Secret
Gorilla Dash API Secret
Request
This endpoint expects an object.
name
items
Response
Created
success
status
data
Errors
403
Forbidden Error
