APIs & Integrations

Anonymous
No aplicable

Company properties filters for List API

resolver

Hey,

I would like to be able to create a list via the API based on some company filter :

Endpoint : https://api.hubapi.com/contacts/v1/lists

{
"name": "Test",
"dynamic": true,
"portalId": xxxxx,
"filters":
[
[{
"operator": "EQ",
"value": "some_value",
"property": "some_company_property",
"type": "string"
}]
]
}

When is this feature going to be available ?

Thank you in advance,

Cheers

0 Me gusta
1 Soluciones aceptada
Derek_Gervais
Solución
Exmiembro de HubSpot
Exmiembro de HubSpot

Company properties filters for List API

resolver

Hi @Black_Pearl,

It's not officially documented, but you should be able to add a company property filter by including the propertyObjectType field, like this:

{
  "type" : "string",
  "propertyObjectType" : "COMPANY",
  "operator" : "EQ",
  "property" : "name",
  "value" : "HubSpot"
}

Ver la solución en mensaje original publicado

2 Respuestas 2
Derek_Gervais
Solución
Exmiembro de HubSpot
Exmiembro de HubSpot

Company properties filters for List API

resolver

Hi @Black_Pearl,

It's not officially documented, but you should be able to add a company property filter by including the propertyObjectType field, like this:

{
  "type" : "string",
  "propertyObjectType" : "COMPANY",
  "operator" : "EQ",
  "property" : "name",
  "value" : "HubSpot"
}
Anonymous
No aplicable

Company properties filters for List API

resolver

Thanks a lot, works fine, both for creating and updating a list :slight_smile: