I am trying to create a note “Account Research” to my Hubspot environment (see below for the workflow). But I am retrieving the error code ‘400’.
This is how my HTTP request node looks like:
And the JSON code for the body is:
{
“properties”: {
“hs_note_body”: “test”
},
“associations”: [
{
“to”: { “id”: {{$(‘Get a deal’).item.json.dealId}} },
“types”: [
{
“associationCategory”: “HUBSPOT_DEFINED”,
“associationTypeId”: 514
}
]
}
]
}
But it is not working and I am receiving the following Error Code:
Error code
400
Full message
400 - "{\"status\":\"error\",\"message\":\"Error creating NOTE. Some required properties were not set.\",\"correlationId\":\"acaed8dd-e373-4d28-8e4c-9b99cb918fa0\",\"context\":{\"properties\":[\"hs_timestamp\"]},\"category\":\"VALIDATION_ERROR\"}"
Request
{ "body": { "Properties": "{\n \"properties\": {\n \"hs_note_body\": \"test\"\n },\n \"associations\": [\n {\n \"to\": { \"id\": 40665603339 },\n \"types\": [\n {\n \"associationCategory\": \"HUBSPOT_DEFINED\",\n \"associationTypeId\": 514\n }\n ]\n }\n ]\n}" }, "headers": { "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7", "Authorization": "**hidden**" }, "method": "POST", "uri": "https://api.hubapi.com/crm/v3/objects/notes", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true }


