# Create a Company API fails with official example data

**URL:** <https://community.hubspot.com/t/create-a-company-api-fails-with-official-example-data/13372>\
**Category:** APIs & Integrations\
**Tags:** companies\
**Created:** [March 6, 2019, 4:45pm UTC](https://community.hubspot.com/t/create-a-company-api-fails-with-official-example-data/13372 "2019-03-06T16:45:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nusnus](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nusnus/32/48328_2.png) [@Nusnus](https://community.hubspot.com/u/Nusnus)\
**Post date:** [March 6, 2019, 4:45pm UTC](https://community.hubspot.com/t/create-a-company-api-fails-with-official-example-data/13372/1 "2019-03-06T16:45:49Z")

</div>

Hello,

I’ve tried to use the company creation API as described here:

[https://developers.hubspot.com/docs/methods/companies/create\_company](https://developers.hubspot.com/docs/methods/companies/create_company)

I’ve tried to create it into my portal _dorky_ of id _5560072_

This is how I tried to use it (with my correct API key of course):

`curl --header "Content-Type: application/json" --request POST --data '{"properties": [{"property": "name", "value": "A company name"}, {"property": "description", "value": "A company description"}]}' https://api.hubapi.com/companies/v2/companies?hapikey=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa`

This is the result I got:

```auto
{ 
 "validationResults":[ 
 { 
 "isValid":false,
 "message":"Property \"\" does not exist",
 "error":"PROPERTY_DOESNT_EXIST",
 "name":""
 },
 { 
 "isValid":false,
 "message":"Property \"\" does not exist",
 "error":"PROPERTY_DOESNT_EXIST",
 "name":""
 }
 ],
 "status":"error",
 "message":"Property values were not valid",
 "correlationId":"9eaf42bf-b2c8-48de-9841-a74f6b574a4d",
 "requestId":"28f942491c427a23f92591e7dd56251f"
}

```

Am I using it wrong or is that a bug in HubSpot’s Companies API or something else maybe?

Basically what I am trying to do is just create a company from my code passing all of the relevant properties from my system in the company creation.

Thanks!

---

<div class="post-metadata">

**Author:** ![Nusnus](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nusnus/32/48328_2.png) [@Nusnus](https://community.hubspot.com/u/Nusnus)\
**Post date:** [March 7, 2019, 9:08am UTC](https://community.hubspot.com/t/create-a-company-api-fails-with-official-example-data/13372/2 "2019-03-07T09:08:54Z")

</div>

Apparently the bug was in my data, using “property” instead of “name” there.

Everything works now!

I got confused because the contacts API uses “property” and companies API uses “name” and I didn’t notice the difference.

Adding a python example could help in the future though 🙂
