APIs & Integrations

maptuhec
Member

Companies API, set company country

Hey guys,

I am trying to create a company record via postman, but I can't because the country property is wrong and it is never set. Can someone tell me how it should look? 

I haven't been able to find in the documentation all of the properties and how to set them.

Best,

Martin

0 Upvotes
1 Reply 1
WendyGoh
HubSpot Employee
HubSpot Employee

Companies API, set company country

Hey @maptuhec,

 

By country property are you referring to the country/region property?

 

If so, you can create company with the country property set like this:

 

CRM API | Companies

POST crm/v3/objects/companies

 

POST Body

 

{
  "properties": {
    "name": "may test",
    "country": "test country"
  }
}

 

 

0 Upvotes