Hey guys,
I am trying to create a note with an association and continually getting this error “Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)”.
The properties for the request are as follows:
const properties = {
‘hs_timestamp’: date.toISOString(),
‘hs_note_body’: sms_text +, // Placeholder vlue (string “TESTING”)
‘hubspot_owner_id’: “170790786”,
‘associations’: {
‘to’: {
‘id’: userRecord // Placeholder (user ID: 234XXXX)
},
“types”: [{
“associationCategory”: “HUBSPOT_DEFINED”,
“associationTypeId”: 202
}]
}
};
Does anyone have any thoguhts on the best way to isolate this further? Seems to be having issues with the values being in an array but that content is copied directly from the example POST request here. any help is greatly appreciated!