How do you create/update a Listings object?

MNg56
Participant

Does anyone know how to search/create/update a Listings object via the API?

 

I'm referencing the npm package -

https://www.npmjs.com/package/@hubspot/api-client

 

However there is no reference to the listings object itself in the API, i.e. there's no crm.listings.

 

I've also tried to reference the object using the objects API, i.e. crm.objects.basicApi.create('listings', {}); but get an error "Unable to infer object type from: listings"

 

 

 

 

0 Upvotes
1 Accepted solution
MNg56
Solution
Participant

So it looks like you need to reference the internal object id in order to interact with the listings object...

 

e.g. to search:

crm.objects.searchApi.doSearch('X-XXX', {});

where X-XXX is the object id referenced when viewing the listings object in your account, i.e.
https://app-eu1.hubspot.com/object-type-settings/{account number}/object/X-XXX

 

View solution in original post

0 Upvotes
1 Reply 1
MNg56
Solution
Participant

So it looks like you need to reference the internal object id in order to interact with the listings object...

 

e.g. to search:

crm.objects.searchApi.doSearch('X-XXX', {});

where X-XXX is the object id referenced when viewing the listings object in your account, i.e.
https://app-eu1.hubspot.com/object-type-settings/{account number}/object/X-XXX

 

0 Upvotes