I’ve the following CLI command to retrieve the Companies from Hubspot of which the field “type” is equal to “PARTNER”. And also I specify the properties to get more data back than the default fields, but I don’t get those fields. What am I doing wrong? Suggestions?
curl https://api.hubapi.com/crm/v3/objects/companies \
--request GET \
--header “Authorization: Bearer ******secret*******” \
--header “Content-Type: application/json” \
--data ‘{ “filterGroups” : [ { “filters” : [ { “propertyName” : “type”, “operator”: “EQ”, “value”: “PARTNER” } ] } ] }’ \
--data ‘{ “properties” : “name,address,address2,city,country,description,gps_loaction,hs_lastmodifieddate,type” }’
For the vallue filter field, I used both “value” and “values” but that didn’t solve the problem.