Put a menu in the bin
const url = 'https://example.com/storefront/bin/menus/example';const options = { method: 'POST', headers: {cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/storefront/bin/menus/example \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Keeps the menu, as it is in the saved draft, in the bin for 90 days. Called as a menu is deleted, before the draft without it is saved: a menu left out of the draft any other way (an undo, discarding changes) is not put in the bin. A menu still in the draft when it is next saved leaves the bin.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”What is in the bin
object
The bin entry, for restoring or deleting for good.
Its title or name when it was deleted.
object
Person: someone signed in. key: an API key. assistant: an app connected over MCP. support: Bottle staff in a support session the business allowed.
The person’s name then, or the key’s or the app’s.
When it is removed for good.
A page or post that was on the shop when it was deleted. It comes back as a draft: publish it again to put it back.
Example
{ "kind": "page", "deletedBy": { "kind": "person" }}Not signed in
object
Example
{ "error": "not_found", "message": "Customer not found"}The plan does not include a shop
object
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
object
Example
{ "error": "not_found", "message": "Customer not found"}No such menu in the saved draft
object
Example
{ "error": "not_found", "message": "Customer not found"}