Python API: unable to update properties with spaces in them
SOLVE
Hi,
I'm using the Hubspot Python API with an API key (as I don't intend on publishing anything, just using our own data).
Whenever I try and create a contact using property names that have spaces in them, I get errors.
See:
HTTP response body: {"status":"error","message":"Property values were not valid: [{\"isValid\":false,\"message\":\"Property \\\"postal code\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"postal code\"},{\"isValid\":false,\"message\":\"Property \\\"phone number\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"phone number\"},{\"isValid\":false,\"message\":\"Property \\\"last name\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"last name\"},{\"isValid\":false,\"message\":\"Property \\\"first name\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"first name\"},{\"isValid\":false,\"message\":\"Property \\\"street address\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"street address\"},{\"isValid\":false,\"message\":\"Property \\\"date of birth\\\" does not exist\",\"error\":\"PROPERTY_DOESNT_EXIST\",\"name\":\"date of birth\"}]","correlationId":"55d36eae-0552-4dc8-bf4b-c25d476160f3","category":"VALIDATION_ERROR"}
2: You can log into your portal and look at all of the properties in the settings. Here is a kb on getting there. See screengrab for location of the property name once you are there
2: You can log into your portal and look at all of the properties in the settings. Here is a kb on getting there. See screengrab for location of the property name once you are there