# Setting primary domain

**URL:** <https://community.hubspot.com/t/setting-primary-domain/52133>\
**Category:** APIs & Integrations\
**Tags:** companies\
**Created:** [February 24, 2022, 8:53pm UTC](https://community.hubspot.com/t/setting-primary-domain/52133 "2022-02-24T20:53:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ascavalcante](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ascavalcante/32/92090_2.png) [@ascavalcante](https://community.hubspot.com/u/ascavalcante)\
**Post date:** [February 24, 2022, 8:53pm UTC](https://community.hubspot.com/t/setting-primary-domain/52133/1 "2022-02-24T20:53:31Z")

</div>

I have companies on my account companies with multiple domains. Is there an endpoint where I can set a domain as the primary one (the one we see in the views as Company Domain Name)?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 25, 2022, 9:18pm UTC](https://community.hubspot.com/t/setting-primary-domain/52133/2 "2022-02-25T21:18:54Z")

</div>

Hi @ascavalcante

You can use the [CRM Company Object API](https://developers.hubspot.com/docs/api/crm/companies) to do this

The properties you will want to set are

**domain** (primary)

**hs\_additional\_domains** (additional)
