Adding additional field to companys endpoint

Hello i want add new feilds data as i am doing post request to the companys endpoint API https://api.hubapi.com/crm/v3/objects/companies
Here is the Json payload

{
“properties”: {
“name”: “grit”,
“domain”: “grir4tt.com”,
“city”: “LOO”,
“country”: “Na”,
“phone”: “+20000000”,
“description”: “This is description”,
“zip”: “01100”,
“address”: “6789”,
“employeeId”: “12345”,
“salesRep”: “John Doe”,
“notes”: “Important client”,
“email”: “g@gmail.com”
}
}
I have added custom property in my company property but when i send its return a bad 400 request

Hi Eugene,
Try retrieving a list of company properties via API (GET /crm/v3/properties/companies) and see if the custom field names (“city”, “country”, etc.) match exactly what HubSpot is expecting.

Hello thank you i have found a solution .

Hi @Eiregi

Everything is looking good in your JSON. Please re-verify the internal name of all properties or maybe there is a mismatch is property value so do have a look into it. Try sending a req with different properties so that you can find out which property is causing the error.

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!