Creating item with dynamic mapping doesn't work

Wow that worked. Immediately was able to find the problem in the code as well…

I first had:
response = requests.post(url, headers=headers, data=data).json()

And changed it to:
response = requests.post(url, headers=headers, json=data).json()

Very weird though, because I also tried adding :
data = json.dumps(data)
while keeping data=data in the response.
That didn’t work either.

Weird, but I’m very happy it finally works. Thanks a lot!

1 Like