# Hubspot notes engagement Error

**URL:** <https://community.hubspot.com/t/hubspot-notes-engagement-error/84610>\
**Category:** APIs & Integrations\
**Tags:** python, contacts\
**Created:** [July 4, 2023, 3:15am UTC](https://community.hubspot.com/t/hubspot-notes-engagement-error/84610 "2023-07-04T03:15:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsharad](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bsharad/32/105007_2.png) [@bsharad](https://community.hubspot.com/u/bsharad)\
**Post date:** [July 4, 2023, 3:15am UTC](https://community.hubspot.com/t/hubspot-notes-engagement-error/84610/1 "2023-07-04T03:15:21Z")

</div>

Hello developers,

i am stuck at creating note engagement for my integration with voip telepohny system(krispcall).

According to the developer docs provided by hubspot they have listed SimplePublicObjectInputForCreate object to do the job but i don’t think this one is avalilable. After doing some research in community, i found some developers suggesting simplepublicobjectinput object instead but still could not hit on target. SimplePublicObjectInput is not allowed to have association object with it. So what is the permanent solution for it .

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-notes-v3%2Fguide)**

Can anyone provide any insight on this. thank you in advance.

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [July 4, 2023, 9:19am UTC](https://community.hubspot.com/t/hubspot-notes-engagement-error/84610/2 "2023-07-04T09:19:45Z")

</div>

Hello @bsharad

The SimplePublicObjectInputForCreate object is no longer available in the HubSpot API. The SimplePublicObjectInput object can be used to create notes, but it does not allow you to associate the note with another object. The permanent solution for this is to use the EngagementInput object. The EngagementInput object allows you to create a note and associate it with another object, such as a contact or a deal.  
How to create a note engagement using the EngagementInput object:

```lia-code-sample
const engagementInput = {
 engagement: {
 active: true,
 type: "NOTE",
 timestamp: 1664375177444,
 },
 associations: {
 contactIds: [contactId],
 },
 metadata: {
 body: "This is a note about the contact.",
 },
};

const response = await hubspot.engagements.create(engagementInput);

```

You can create a note with the specified body and associate it with the contact with the specified ID.
