Skip to content

feat(menu): POST /menu-items/reset puts back the default menu - #268

Merged
SteveGilvarry merged 1 commit into
masterfrom
feat/197-menu-reset
Oct 30, 2026
Merged

SteveGilvarry merged 1 commit into
masterfrom
feat/197-menu-reset

Conversation

@SteveGilvarry

Copy link
Copy Markdown
Member

ZoneMinder's Options > Menu has a Reset button that deletes every
Menu_Items row and inserts the built-ins. zm-api had CRUD on menu items
but no reset, and a client deleting and recreating rows one at a time
leaves half a menu if a request fails.

POST /api/v3/menu-items/reset (System Edit) does both in one transaction
and returns the new list. The rows are zm_create.sql's seed, Watch at 15
included: the legacy reset list leaves Watch out, but a reset should give
back what a fresh install shows.

Fixes #197

🤖 Generated with Claude Code

https://claude.ai/code/session_01KXE4e1KGijmQSLUde9ydBZ

ZoneMinder's Options > Menu has a Reset button that deletes every
Menu_Items row and inserts the built-ins. zm-api had CRUD on menu items
but no reset, and a client deleting and recreating rows one at a time
leaves half a menu if a request fails.

POST /api/v3/menu-items/reset (System Edit) does both in one transaction
and returns the new list. The rows are zm_create.sql's seed, Watch at 15
included: the legacy reset list leaves Watch out, but a reset should give
back what a fresh install shows.

Fixes #197

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KXE4e1KGijmQSLUde9ydBZ
@SteveGilvarry
SteveGilvarry merged commit b28d42c into master Oct 30, 2026
13 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Menu items: reset to the default rows

1 participant