APIs & Integrations

PTancredi
Contributor

API endpoint to retrieve Course info

SOLVE

I'm looking to retreive information about the new Course object. I've found its endpoint at /crm/v3/objects/0-410 but the only properties returned are the create date, modified date, and id.

 

Is there any way to get additional properties (like name)? 

 

Thanks

1 Accepted solution
SteveHTM
Solution
Key Advisor | Partner
Key Advisor | Partner

API endpoint to retrieve Course info

SOLVE

@PTancredi - Thanks for the question here, as this is a common concern. When you retrive the details of a given record, whatever the object type, you should also include in the API call a comma seperated list of the property names (internal names) that you would like returned as a part of the result.

 

I hope this helps.

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature

View solution in original post

0 Upvotes
7 Replies 7
GRajput
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

API endpoint to retrieve Course info

SOLVE

Hi @PTancredi 

 

I believe you have created a Custom object named Course and want to read all its properties. What you can do is add properties' internal name to get their details like I have used SKU and quantity in the curl provided below

curl --request GET \
  --url 'https://api.hubapi.com/crm/v3/objects/objectType?limit=10&properties=sku&properties=quantity&archived=false' \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

 

GRajput_0-1738834233509.png

 

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!

 




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


0 Upvotes
PTancredi
Contributor

API endpoint to retrieve Course info

SOLVE

Thanks, that helps but didn't work for me. See my comment to the other response.

0 Upvotes
SteveHTM
Solution
Key Advisor | Partner
Key Advisor | Partner

API endpoint to retrieve Course info

SOLVE

@PTancredi - Thanks for the question here, as this is a common concern. When you retrive the details of a given record, whatever the object type, you should also include in the API call a comma seperated list of the property names (internal names) that you would like returned as a part of the result.

 

I hope this helps.

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
0 Upvotes
PTancredi
Contributor

API endpoint to retrieve Course info

SOLVE

This is good info and feels like it should work but didn't actually work for me. I would expect the following call to return the "days" property but it doesn't. I tried several fields, both internal and external names, and still just get 

https://api.hubapi.com/crm/v3/objects/0-410?property=days&archived=false

It still just returns these standard three properties for each item:

"properties": {
   "hs_createdate": "2024-11-21T03:44:46.597Z",
   "hs_lastmodifieddate": "2024-11-21T04:39:30.067Z",
   "hs_object_id": "384802639680"
},
0 Upvotes
SteveHTM
Key Advisor | Partner
Key Advisor | Partner

API endpoint to retrieve Course info

SOLVE

"properties" not "property" in teh API string.

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
PTancredi
Contributor

API endpoint to retrieve Course info

SOLVE

Of course! Thanks. Happy (and a little chagrined) it was something simple

0 Upvotes
PTancredi
Contributor

API endpoint to retrieve Course info

SOLVE

Thanks, this is what I needed

0 Upvotes