APIs & Integrations

shadow42
Participant

Want to get Property "hubspot_owner_id" of the note as shown in the document

SOLVE

Hi I was experimenting with the Note API that can be found here: https://developers.hubspot.com/docs/api/crm/notes

here I saw this property "hubspot_owner_id" being displayed for Read API

shadow42_0-1674102528717.png


but in my result I am not getting this property  my result: 

shadow42_1-1674102572628.png


So my question is, Is there any key that we have to pass to get the property "hubspot_owner_id" of the note? 
if yes where and what is key?

0 Upvotes
1 Accepted solution
Jaycee_Lewis
Solution
Community Manager
Community Manager

Want to get Property "hubspot_owner_id" of the note as shown in the document

SOLVE

Hi, @shadow42 👋 You can accomplish this by adding your additional properties as a query param. Here's my example request and response:

  • curl --request GET \
      --url 'https://api.hubapi.com/crm/v3/objects/notes/30227867304?properties=hubspot_owner_id&archived=false' \
      --header 'authorization: Bearer YOUR_ACCESS_TOKEN'
  • HTTP 200
    
    {
      "id": "30227867304",
      "properties": {
        "hs_createdate": "2023-01-19T18:02:53.352Z",
        "hs_lastmodifieddate": "2023-01-19T18:02:53.352Z",
        "hs_object_id": "30227867304",
        "hubspot_owner_id": "285256448"
      },
      "createdAt": "2023-01-19T18:02:53.352Z",
      "updatedAt": "2023-01-19T18:02:53.352Z",
      "archived": false
    }

Have fun building! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

View solution in original post

2 Replies 2
shadow42
Participant

Want to get Property "hubspot_owner_id" of the note as shown in the document

SOLVE

Hi @Jaycee_Lewis,
thanks, I figured it out, I was using hs_owner_id instead of  hubspot_onwer_id and was getting frustrated. I dunno why I was using hs_owner_id when hubspot_onwer_id was mentioned everywhere.
thanks again

0 Upvotes
Jaycee_Lewis
Solution
Community Manager
Community Manager

Want to get Property "hubspot_owner_id" of the note as shown in the document

SOLVE

Hi, @shadow42 👋 You can accomplish this by adding your additional properties as a query param. Here's my example request and response:

  • curl --request GET \
      --url 'https://api.hubapi.com/crm/v3/objects/notes/30227867304?properties=hubspot_owner_id&archived=false' \
      --header 'authorization: Bearer YOUR_ACCESS_TOKEN'
  • HTTP 200
    
    {
      "id": "30227867304",
      "properties": {
        "hs_createdate": "2023-01-19T18:02:53.352Z",
        "hs_lastmodifieddate": "2023-01-19T18:02:53.352Z",
        "hs_object_id": "30227867304",
        "hubspot_owner_id": "285256448"
      },
      "createdAt": "2023-01-19T18:02:53.352Z",
      "updatedAt": "2023-01-19T18:02:53.352Z",
      "archived": false
    }

Have fun building! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot