Please could someone assist me?
I definitely have the property setup in Hubspot with the internal name “min_battery_percentage”
I definitely have the write permissions on my app authorisation code.
Why am I still getting the following messages?
data = {'min_battery_percentage': 17.0}
bearer_token = str("Bearer " + os.getenv("HUBSPOT_AUTH"))
payload = data
json_payload = json.dumps(payload)
headers = {
'Authorization': bearer_token,
'accept': "application/json",
'content-type': "application/json"
}
# Make a GET request to the API
response = requests.request("PATCH", url, headers=headers, data=json_payload)
'{"status":"error","message":"Invalid input JSON on line 1, column 24: Unrecognized token \'min_battery_percentage\': was expecting (JSON String, Number, Array, Object or token \'null\', \'true\' or \'false\')","correlationId":"5dadc2ba-c921-4325-8c71-d10587de7136"}'
This definitely helped the situation as the Error message has changed, thank you. I’ve tried sending 17.0 as a float and string, but get the following error message.
Thank you this has definitely helped as the error message has changed. I’ve tried sending 17.0 as a float and string, but get the same message below. Any suggestions?
I’m posting to: