# Add company owner using api

**URL:** <https://community.hubspot.com/t/add-company-owner-using-api/73464>\
**Category:** APIs & Integrations\
**Tags:** companies\
**Created:** [January 22, 2023, 10:17pm UTC](https://community.hubspot.com/t/add-company-owner-using-api/73464 "2023-01-22T22:17:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasperFox](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@JasperFox](https://community.hubspot.com/u/JasperFox)\
**Post date:** [January 22, 2023, 10:17pm UTC](https://community.hubspot.com/t/add-company-owner-using-api/73464/1 "2023-01-22T22:17:20Z")

</div>

Currently trying to add The Company owner to the properties however I can’t find it in the documentation

var data = new  
{  
properties = new object[]  
{  
new { name = “name”, value = “My Business” },  
new { name = “phone”, value = “555-555-5555” },  
new { name = “domain”, value = “[mybusiness.co.uk](http://mybusiness.co.uk)” },  
new { name = “industry”, value = “Consulting” },  
new { name = “city”, value = “city” },  
}

};

---

<div class="post-metadata">

**Author:** ![Phil\_Vallender](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/phil_vallender/32/48924_2.png) [@Phil\_Vallender](https://community.hubspot.com/u/Phil_Vallender)\
**Post date:** [January 23, 2023, 9:42am UTC](https://community.hubspot.com/t/add-company-owner-using-api/73464/2 "2023-01-23T09:42:12Z")

</div>

Hi

You can add new { name = “ownerId”, value = “123” }, replacing 123 with the id of the actual owner you want to set, to your code above and it should do the trick.

Hope this helps?

@JasperFox
