Skip to navigation

Upsert Menu

View as Markdown

Creates the menu, or updates the one with the same name. Needs a key with Website Content: Read and Write (website-content:write).

The body and rules are the same as Create Menu. Sending an identical payload again writes nothing: no duplicate, the id is kept and updated_at does not change, so a migration can be re-run safely.

Sending items replaces the whole tree, and the menu is only rebuilt when the tree differs from what is stored (the previous version stays in the menu editor’s history). A soft-deleted menu with the same name is restored.

Headers

GorillaDash-Api-KeystringOptional
Gorilla Dash API Key
GorillaDash-Api-SecretstringOptional
Gorilla Dash API Secret

Request

This endpoint expects an object.
namestringRequired
itemslist of objectsRequired

Response

Created
successboolean
statusinteger
dataobject