# Re: Branches

**URL:** <https://community.hubspot.com/t/re-branches/16407>\
**Category:** APIs & Integrations\
**Created:** [September 24, 2019, 11:54pm UTC](https://community.hubspot.com/t/re-branches/16407 "2019-09-24T23:54:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JLiu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jliu/32/99782_2.png) [@JLiu](https://community.hubspot.com/u/JLiu)\
**Post date:** [September 24, 2019, 11:54pm UTC](https://community.hubspot.com/t/re-branches/16407/1 "2019-09-24T23:54:25Z")

</div>

Is there a API endpoint to set up the Parent-Child company relationship when create a company or update one? Thanks.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [September 25, 2019, 9:24pm UTC](https://community.hubspot.com/t/re-branches/16407/2 "2019-09-25T21:24:25Z")

</div>

Welcome, @JLiu.

Yes, you can do that with the [CRM Associations API](https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview), specifically using [this endpoint](https://developers.hubspot.com/docs/methods/crm-associations/associate-objects) and either `definitionId` `13` (parent company to child company) or `14` (child company to parent company).

---

<div class="post-metadata">

**Author:** ![JLiu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jliu/32/99782_2.png) [@JLiu](https://community.hubspot.com/u/JLiu)\
**Post date:** [September 26, 2019, 12:09am UTC](https://community.hubspot.com/t/re-branches/16407/3 "2019-09-26T00:09:54Z")

</div>

Superb! Many thanks Isaac. Worked out exactly as I expected.

 ![ChildCompany.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/138c2272f92e25d7b1136c09632bf3406b710cf8.jpeg)
