Endpoint
Authentication
This endpoint requires authentication and store employee authorization.This is a convenience endpoint that toggles the
is_available field. If the item is currently available, it becomes unavailable, and vice versa. You don’t need to specify the new state.Request
Path parameters
MongoDB ObjectId of the menu item to toggle
Headers
Bearer token for authentication
This endpoint does not require a request body. It automatically toggles the current availability state.
Response
Indicates if the request was successful
Human-readable message describing the result. Will say either “Menu item is now available.” or “Menu item is now unavailable.”
Contains the updated menu item data
The updated menu item object
Unique identifier for the menu item
ID of the store this item belongs to
Name of the menu item
Description of the menu item
Price of the menu item
URL to the menu item image
Category of the menu item
New availability status (toggled from previous state)
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update
Examples
Success response - Made available (200)
Success response - Made unavailable (200)
Error responses
404 - Menu item not found
403 - Not authorized
401 - Unauthorized
Use cases
This endpoint is useful for:- Quickly marking items as out of stock during busy periods
- Temporarily disabling seasonal items
- Managing item availability based on inventory
- Hiding items during preparation or menu updates
If you need to set a specific availability state, use the update menu item endpoint with the
is_available parameter instead.