<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with creating a note using https://api.hubapi.com/crm/v3/objects/notes in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118439#M80709</link>
    <description>&lt;P&gt;It looks your like JSON is a bit off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "associations": [
        {
            "to": {
                "id": "2597827578"
            },
            "types": [
                {
                    "associationCategory": "HUBSPOT_DEFINED",
                    "associationTypeId": 190
                }
            ]
        }
        ],
        "attachments": [
            {
                "id": "186918798705"
            }
        ],
        "properties": {
            "hs_note_body": "Comment",
            "hs_timestamp": 1735047120
        }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This page has a good sample JSON:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/guides/api/crm/engagements/notes#associations" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/guides/api/crm/engagements/notes#associations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the list of associationTypeId (note to X):&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2025 18:29:51 GMT</pubDate>
    <dc:creator>MichaelMa</dc:creator>
    <dc:date>2025-03-05T18:29:51Z</dc:date>
    <item>
      <title>Problem with creating a note using https://api.hubapi.com/crm/v3/objects/notes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118312#M80702</link>
      <description>&lt;P&gt;I want to create a note that attaches a file (in the file manager) to a company.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;&lt;A href="https://api.hubapi.com/crm/v3/objects/notes" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/notes&lt;/A&gt;&amp;nbsp;with curl following JSON object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"associations": [&lt;BR /&gt;{&lt;BR /&gt;"types": [&lt;BR /&gt;{&lt;BR /&gt;"associationCategory": "HUBSPOT_DEFINED",&lt;BR /&gt;"associationTypeId": 2&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"to": {&lt;BR /&gt;"id": "2597827578",&lt;BR /&gt;"type": "company"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"attachments": [&lt;BR /&gt;{&lt;BR /&gt;"id": "186910861670"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"properties": {&lt;BR /&gt;"hs_note_body": "Comment"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recieved the error:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"context": {&lt;BR /&gt;"properties": [&lt;BR /&gt;"hs_timestamp"&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;"correlationId": "a3553c8c-bdac-4148-885b-20abdd9d7708",&lt;BR /&gt;"message": "Error creating NOTE. Some required properties were not set.",&lt;BR /&gt;"category": "VALIDATION_ERROR",&lt;BR /&gt;"status": "error"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What did I do wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 15:40:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118312#M80702</guid>
      <dc:creator>yorambaron</dc:creator>
      <dc:date>2025-03-05T15:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a note using https://api.hubapi.com/crm/v3/objects/notes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118393#M80707</link>
      <description>&lt;P&gt;It's noted in the context response. You're missing the required property of "&lt;SPAN&gt;hs_timestamp" (unix timestamp) in your payload.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 17:42:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118393#M80707</guid>
      <dc:creator>MichaelMa</dc:creator>
      <dc:date>2025-03-05T17:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a note using https://api.hubapi.com/crm/v3/objects/notes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118409#M80708</link>
      <description>&lt;P&gt;I added "hs_timestamp" the JSON see the error message:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"correlationId": "0ebef994-344a-4b10-b7ad-2944a6de62b9",&lt;BR /&gt;"message": "invalid from object type 0-46 for associations to be created. expected: 0-2",&lt;BR /&gt;"category": "VALIDATION_ERROR",&lt;BR /&gt;"status": "error"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JSON request:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"associations": [&lt;BR /&gt;{&lt;BR /&gt;"types": [&lt;BR /&gt;{&lt;BR /&gt;"associationCategory": "HUBSPOT_DEFINED",&lt;BR /&gt;"associationTypeId": 2&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"to": {&lt;BR /&gt;"id": "2597827578",&lt;BR /&gt;"type": "company"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"attachments": [&lt;BR /&gt;{&lt;BR /&gt;"id": "186918798705"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"properties": {&lt;BR /&gt;"hs_timestamp": 1735047120,&lt;BR /&gt;"hs_note_body": "message"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 17:58:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118409#M80708</guid>
      <dc:creator>yorambaron</dc:creator>
      <dc:date>2025-03-05T17:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a note using https://api.hubapi.com/crm/v3/objects/notes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118439#M80709</link>
      <description>&lt;P&gt;It looks your like JSON is a bit off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "associations": [
        {
            "to": {
                "id": "2597827578"
            },
            "types": [
                {
                    "associationCategory": "HUBSPOT_DEFINED",
                    "associationTypeId": 190
                }
            ]
        }
        ],
        "attachments": [
            {
                "id": "186918798705"
            }
        ],
        "properties": {
            "hs_note_body": "Comment",
            "hs_timestamp": 1735047120
        }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This page has a good sample JSON:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/guides/api/crm/engagements/notes#associations" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/guides/api/crm/engagements/notes#associations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the list of associationTypeId (note to X):&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 18:29:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118439#M80709</guid>
      <dc:creator>MichaelMa</dc:creator>
      <dc:date>2025-03-05T18:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a note using https://api.hubapi.com/crm/v3/objects/notes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118600#M80715</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/98108"&gt;@yorambaron&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error occurs because the required "hs_timestamp" parameter is missing from your JSON request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To fix this issue, add the "hs_timestamp" field to the properties object in your JSON request. Your updated JSON should appear as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
"associations": [
{
"types": [
{
"associationCategory": "HUBSPOT_DEFINED",
"associationTypeId": 2
}
],
"to": {
"id": "2597827578",
"type": "company"
}
}
],
"attachments": [
{
"id": "186910861670"
}
],
"properties": {
"hs_note_body": "Comment",
"hs_timestamp": "1709688326000"  // Add current timestamp in milliseconds
}
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 01:47:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118600#M80715</guid>
      <dc:creator>GiantFocal</dc:creator>
      <dc:date>2025-03-06T01:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a note using https://api.hubapi.com/crm/v3/objects/notes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118927#M80723</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;MichaelMa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the JSON and received the following error:&lt;/P&gt;&lt;P&gt;{"correlationId":"3fceddb8-7c41-4fb7-adfd-7253f5eca0e9","message":"invalid from object type 0-46 for associations to be created. expected: 0-2","category":"VALIDATION_ERROR","status":"error"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is the JSON structure based on the link that you provided.&lt;/P&gt;&lt;P&gt;Any idea what the problem is? I find the error message challenging..&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"associations": [&lt;BR /&gt;{&lt;BR /&gt;"types": [&lt;BR /&gt;{&lt;BR /&gt;"associationCategory": "HUBSPOT_DEFINED",&lt;BR /&gt;"associationTypeId": 189&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"to": {&lt;BR /&gt;"id": 2597827578&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"properties": {&lt;BR /&gt;"hs_attachment_ids": "186964207421",&lt;BR /&gt;"hs_timestamp": 1741259013,&lt;BR /&gt;"hs_note_body": "comment"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 15:55:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118927#M80723</guid>
      <dc:creator>yorambaron</dc:creator>
      <dc:date>2025-03-06T15:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a note using https://api.hubapi.com/crm/v3/objects/notes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118977#M80729</link>
      <description>&lt;P&gt;associationTypeId 189 is COMPANY to NOTE which is incorrect as you're starting from the NOTE object. NOTE to COMPANY is&amp;nbsp;&lt;SPAN&gt;190.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 17:01:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1118977#M80729</guid>
      <dc:creator>MichaelMa</dc:creator>
      <dc:date>2025-03-06T17:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a note using https://api.hubapi.com/crm/v3/objects/notes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1119055#M80735</link>
      <description>&lt;P&gt;In the &lt;A href="https://developers.hubspot.com/docs/guides/api/crm/engagements/notes?_gl=1*1r1fge8*_ga*MzQ2MzkxNDk0LjE3NDEyNzY1OTg.*_ga_LXTM6CQ0XK*MTc0MTI4NzY1My40LjEuMTc0MTI5MDQ1Ni42MC4wLjA.#associations" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the "hs_timestamp": "2021-11-12T15:48:22Z" is incorect, it should be a unix timestamp.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 19:49:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-with-creating-a-note-using-https-api-hubapi-com-crm-v3/m-p/1119055#M80735</guid>
      <dc:creator>yorambaron</dc:creator>
      <dc:date>2025-03-06T19:49:50Z</dc:date>
    </item>
  </channel>
</rss>

