Hi Jacob,
I don't have any easy way of testing this, but have you tried using the json
keyword parameter to requests.put
? I don't think requests will automatically convert your dictionary to JSON otherwise.
Something like this:
requests.put(url, json=body, headers=headers, verify=False)
Hope that helps,
Simon