APIs & Integrations

JPilegaard
Member

See all custom properties for contact/companies

SOLVE

Hello developers,

 

We are trying to futher integrate your API into our application.

 

One of our business needs is to be able to update a custom property on a contact. I saw on another post, that you can simply call a PATCH with the desired custom property. Awesome.

 

But what is the way to display all custom properties for a specific contact? Is it through the `/search` endpoint and with filterGroups?

0 Upvotes
1 Accepted solution
Jaycee_Lewis
Solution
Community Manager
Community Manager

See all custom properties for contact/companies

SOLVE

Hey, @JPilegaard That's correct. The issue with trying to include all your properties as query parms, using this endpoint for example, is that you'll hit a character limit. So, the search API is a better fit for your request.

 

Please note, there is still a character limitation, but it is greater when using the Search API:

“A query can contain a maximum of 3,000 characters. If the body of your request exceeds 3,000 characters, a 400 error will be returned.” — Search API | Limitations 

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

View solution in original post

0 Upvotes
1 Reply 1
Jaycee_Lewis
Solution
Community Manager
Community Manager

See all custom properties for contact/companies

SOLVE

Hey, @JPilegaard That's correct. The issue with trying to include all your properties as query parms, using this endpoint for example, is that you'll hit a character limit. So, the search API is a better fit for your request.

 

Please note, there is still a character limitation, but it is greater when using the Search API:

“A query can contain a maximum of 3,000 characters. If the body of your request exceeds 3,000 characters, a 400 error will be returned.” — Search API | Limitations 

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes