Delete a menu
DELETE/api/v2/catalog/menus/:menu_id
Delete a menu by its id
Request
Path Parameters
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^[0-9a-z]+$
Unique ID of the menu
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^[0-9a-z]+$
Unique ID of the menu
Possible values: non-empty
Name of the menu
Possible values: non-empty
Slug of the menu
Description of the menu
The photo URL of the menu
Text to display in the announcement bar, implicitly enables the announcement bar.
Heading of the menu
colors
object
required
Primary color of the menu
Possible values: <= 2
Default value: 0
Layout of the menu
Default value: true
Mark the product as not available
Default value: 0
Used to order the item, order defaults to ascending.
{
"id": "4lj8y3ygw1w0",
"name": "Lunch",
"slug": "lunch",
"description": "Great lunch options",
"photo_url": "https://example.com/photo.jpg",
"announcement": "Free delivery on orders over $50",
"heading": "Our lunch menu",
"colors": {
"primary": "#ff0000"
},
"layout": 0,
"available": true,
"order": 1,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
HTTP status code
Error message
Possible values: [query
, body
, response
, param
]
Where in the request the error occurred
errors
object[]
required
Possible values: non-empty
Path to the property with the error
constraints
object
required
Error message
{
"statusCode": 404,
"message": "Cannot find item",
"location": "query",
"errors": [
{
"path": "business.id",
"constraints": {
"object_required_property": "Required property"
}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}