# Hubspot API batch creation in c# not working

**URL:** <https://community.hubspot.com/t/hubspot-api-batch-creation-in-c-not-working/119518>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [October 30, 2024, 4:20pm UTC](https://community.hubspot.com/t/hubspot-api-batch-creation-in-c-not-working/119518 "2024-10-30T16:20:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NPortugal8](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@NPortugal8](https://community.hubspot.com/u/NPortugal8)\
**Post date:** [October 30, 2024, 4:20pm UTC](https://community.hubspot.com/t/hubspot-api-batch-creation-in-c-not-working/119518/1 "2024-10-30T16:20:58Z")

</div>

I have a csv file with the headers same as my hubdb table and a bunch of data that I want to import using azure functions.

I’ve tried this endpoint “…/cms/v3/hubdb/tables/123/import” and also v2 and v1 but I’m still getting HTTP 400.

Do you know how to reach those endpoints or if there is a better solution?

Thank you

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [October 30, 2024, 10:08pm UTC](https://community.hubspot.com/t/hubspot-api-batch-creation-in-c-not-working/119518/2 "2024-10-30T22:08:06Z")

</div>

@NPortugal8 - based on the limited information here, I’d initially suggest a check on the header configuration for the API call. It should not contain any format value, just authentication. That’s whats tripped me up in the past with the file/import related APIs.

Good luck!

Steve
