La communauté HubSpot est disponible en français.

Company properties filters for List API

Résolue
Contributeur régulier

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

Répondre
0 Vote / Votes
Solution acceptée / Solutions acceptées

Solutions approuvées
Gestionnaire de communauté

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"
}
2 RÉPONSES 2
Gestionnaire de communauté

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"
}
Highlighted
Contributeur régulier

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