Using API to update the Inventory widget?