Feeding via API returns 400
See original GitHub issueHello,
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
Issue Analytics
- State:
- Created a year ago
- Comments:22
Top Results From Across the Web
400 BAD request HTTP error code meaning? - Stack Overflow
A 400 means that the request was malformed. In other words, the data stream sent by the client to the server didn't follow...
Read more >Solved: Rest API returns error 400 - ServiceNow Community
We face a problem on restAPI. Suddenly the request from application XYZ to ServiceNow API in lower environment return error400 bad request. But...
Read more >400 Bad Request When creating company via API
Solved: Hi all, I'm trying to add a company via the API to my developer HUB (5217770). ... StatusCode: 400, ReasonPhrase: 'Bad Request',...
Read more >Keep getting a 400 Bad Request when trying to create a Site ...
I'm quite new to Sharepoint stuff, and currently am trying to interact with the REST API. I have been able to get all...
Read more >API 400 error when using BETWEEN_TIMES parameter o...
Solved: Hey guys, Recently I found an issue when using the AppDynamics API to retrieve metrics or events on a LITE account.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 😬