APIs & Integrations

Anonymous
Non applicable

Company properties filters for List API

Résolue

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 Votes
1 Solution acceptée
Derek_Gervais
Solution
Ancien salarié HubSpot
Ancien salarié HubSpot

Company properties filters for List API

Résolue

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"
}

Voir la solution dans l'envoi d'origine

2 Réponses
Derek_Gervais
Solution
Ancien salarié HubSpot
Ancien salarié HubSpot

Company properties filters for List API

Résolue

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
Non applicable

Company properties filters for List API

Résolue

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