-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi there @miggland . As the error says you need to supply a dictionary, not an integer. Here is a sample request: |
Beta Was this translation helpful? Give feedback.
-
I'm having trouble with this in the inventree-python binding.. Using the api.post method, I get this:
However, if I send the same data with: Is anybody clear about when data, and when json should be used? The rest of the API seems to work, as this is not the only place JSON data is sent? Or does it have to do with the nested JSON? This is using inventree-dev:
|
Beta Was this translation helpful? Give feedback.
-
Hey @miggland I've had a look into this - let's discuss over at inventree/inventree-python#115 |
Beta Was this translation helpful? Give feedback.
Hi there @miggland . As the error says you need to supply a dictionary, not an integer. Here is a sample request: