Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95294

Shopping_list api marking complete

$
0
0

@k-9 wrote:

I’m trying to make items complete on my shopping list through the api. I can successfully get all the items on my shopping list, add new items and even clear all the completed items on the shopping list all through api calls. But when it comes to updated an item to completed I can’t seem to make it work.

this url will return all my items:
http://homeassistant.local:8123/api/shopping_list/

I can add items with this url using json in body name: test
http://home assistant.local:8123/api/shopping_list/item

according to this page: https://github.com/home-assistant/home-assistant/blob/a119932ee590b9115afc97ddf56b9a95fd9f2c00/homeassistant/components/shopping_list/init.py
i should be able to use http://home assistant.local:8123/api/shopping_list/item/{ENTER MY ITEM ID }
to update my items as being complete , but all i get is {“message”:“Item not found”}

Anybody try this before? Anybody had any success?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95294

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>