How to update contact datepicker field value via Contact API?
Hello!
I’m trying to update contact’s custom field (datepicker type) value via API [0] , and API returns error message “Property values were not valid” . Tried sending different values (“2016-10-05”, “2016-10-05 11:11:11”, timestamp), no success. Do you have any recommendations or sources what to read to solve this issue? I could not find anything related to value requirements.
It looks like you’re passing a timestamp in seconds since midnight, not milliseconds since midnight. Most likely what you want to be passing is 1411084800000 not 1411084800.
How to update contact datepicker field value via Contact API?
thanks! Directionally it was good, just had to reverse-engineer value: for me for some reason “midnight” was 03:00:00 , not 00:00:00, probably because of timezones or something, but it was weird and unexpected and error message wasn’t helpful in debugging why my provided value is invalid for API
HubSpot API endpoints accept UNIX formatted timestamps in milliseconds. Most scripting languages have built-in functions or existing libraries that handle time conversion, but you must ensure that your timestamp values are in the correct UNIX...