Loki Docs
Tools › Meals › Update a quick add

Update a quick add

update_quick_addChanges
What it does
Changes or deletes something you had. Your assistant can ask you to confirm first. Safe to retry: the same call twice changes nothing more.
Permission
Meals, change meals:write

What your assistant is told

Fix an existing quick add in place — the right tool for "make it three eggs", "call it breakfast instead", "I have it at 9, not 10", or "only on weekdays". Pass quick_add_id from list_quick_adds plus the desired end state; anything you omit is left alone, and items (when supplied) REPLACES the whole list rather than appending — read the shortcut from list_quick_adds first and send every item you want kept. Prefer this over delete-and-recreate: recreating discards the shortcut's id and its usage history, which is what keeps it ranked and stops it retiring. It also works on a shortcut that has already retired out of list_quick_adds, if the user hands you its id.

Parameters

  • quick_add_idid, requiredId of the quick add to change (from list_quick_adds).
  • nametext, optionalOptional new label. Omit to keep.
  • time_local_minuteswhole number, optionalOptional new time: minutes since local midnight, 0–1439. Omit to keep.
  • weekday_maskwhole number, optionalOptional new weekday bitmask: bit 0 = Mon … bit 6 = Sun. Omit to keep.
  • itemslist of object, optionalOptional replacement items. Omit to keep existing items; supply to replace the whole list.