# Adding a deal note through API

**URL:** <https://community.hubspot.com/t/adding-a-deal-note-through-api/112976>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [July 26, 2024, 12:41pm UTC](https://community.hubspot.com/t/adding-a-deal-note-through-api/112976 "2024-07-26T12:41:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobertB](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@RobertB](https://community.hubspot.com/u/RobertB)\
**Post date:** [July 26, 2024, 12:41pm UTC](https://community.hubspot.com/t/adding-a-deal-note-through-api/112976/1 "2024-07-26T12:41:24Z")

</div>

Hello,

I do realize that this might be a duplicate request at some level but I’ve been searching for a solution for a while now.

So I’m trying to add a note associated with a deal through the Enggagements API, using the v3 API. When using the API docs and the Test call, everything works as expected, the note lands where it should, but when I call the API, with the same JSON payload (copied from the docs test call actually) it comes back with success but `Properties:{CreateDate:0001-01-01 00:00:00 +0000 UTC…`  
I’ve added below all the data that I’m sending over…

 ![CleanShot 2024-07-26 at 15.38.30.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/6/6a8c84708bf4b7669f3ebeac1072262294bc23d7.png)  
No note added…

 ![CleanShot 2024-07-26 at 15.35.37.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/5/e5701e5f4bf1bd68523c93e6b9dd36543dc60da5.jpeg)  
RapidAPI call

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [July 26, 2024, 6:02pm UTC](https://community.hubspot.com/t/adding-a-deal-note-through-api/112976/2 "2024-07-26T18:02:08Z")

</div>

@RobertB - I remember having some difficulty getting this right, and for me this revolved around needing to get the datestamp is teh correct ISO formatted string (the call does not seem to accept a mS formatted time value).

So my properties (for a Company association) were roughly:

```lia-code-sample
 note_data = {
 'properties' : {
 'hs_note_body' : note_text,
 'hs_timestamp' : hs_time,
 'hubspot_owner_id' : owner_id
 },
 'associations' : [ {
 'types' : [{'associationCategory':'HUBSPOT_DEFINED', 'associationTypeId': 190 }],
 'to' : {'id': companyID } 
 } ]
 }

```

Hope this helps.

Steve
