babybuddy: Feeding via API returns 400
Hello,
I’m attempting to add a feeding via the API (though Bitfocus Companion). I got everything working for a diaper change, so I know the basic connection is correct. I am unable to get the feeding to work though. Does anyone see my error?
URL: https://url.tld/api/feedings/
JSON: { "child":"1", "method": "$(internal:custom_feedMethod)", "type": "$(internal:custom_feedType)", "amount": "$(internal:custom_feedQty)" }
Header: {"authorization": "Token abc123"}
Returns:
172.17.0.4 - - [16/Aug/2022:12:55:46 +0000] "POST /api/feedings/ HTTP/1.1" 400 71 "-" "-"
Thanks
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (11 by maintainers)
Great project, it’s helping my wife and I a ton. We appreciate all your hard work a ton! Thanks!
Ah yeah that’s true. A relatively recent change. I think the API is probably behind on a couple of different defaults that have changed over time 😬