# Custom object associations on import api

**URL:** <https://community.hubspot.com/t/custom-object-associations-on-import-api/70614>\
**Category:** APIs & Integrations\
**Created:** [December 6, 2022, 8:31am UTC](https://community.hubspot.com/t/custom-object-associations-on-import-api/70614 "2022-12-06T08:31:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ESmolarski](https://avatars.discourse-cdn.com/v4/letter/e/e274bd/32.png) [@ESmolarski](https://community.hubspot.com/u/ESmolarski)\
**Post date:** [December 6, 2022, 8:31am UTC](https://community.hubspot.com/t/custom-object-associations-on-import-api/70614/1 "2022-12-06T08:31:18Z")

</div>

Hi,

I am trying to impot via API a csv file of custom object records with their association to another custom object.

I have created an association in hubspot portal:

This is my import request:

 ![Screen Shot 2022-12-06 at 10.26.36.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/0/c06f576b6d41525bbcd546881685f6fd302f4240.jpeg)

and this is the error:

 ![Screen Shot 2022-12-06 at 10.00.32.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/9/e9399d68ded3f30df6f4c2b7b4458f8448322db6.png)

I haven’t found any documentation regarding importing custom objects with API.

I would appreciate your help.

Thanks

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 6, 2022, 7:00pm UTC](https://community.hubspot.com/t/custom-object-associations-on-import-api/70614/2 "2022-12-06T19:00:35Z")

</div>

Hi, @ESmolarski 👋 Thanks for reaching out. And thank you for including those details. Hey, @nikodev @miljkovicmisa @JBeatty, do you have any custom object import with association experience or tips you can share with @ESmolarski?

Best,

Jaycee
