# Create batch of companies - function does not work?

**URL:** <https://community.hubspot.com/t/create-batch-of-companies-function-does-not-work/78069>\
**Category:** APIs & Integrations\
**Tags:** python, companies\
**Created:** [March 27, 2023, 12:20pm UTC](https://community.hubspot.com/t/create-batch-of-companies-function-does-not-work/78069 "2023-03-27T12:20:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KBindslev](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KBindslev](https://community.hubspot.com/u/KBindslev)\
**Post date:** [March 27, 2023, 12:20pm UTC](https://community.hubspot.com/t/create-batch-of-companies-function-does-not-work/78069/1 "2023-03-27T12:20:57Z")

</div>

I’m trying to create a batch of companies in Hubspot with python. I’m following the docs here: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/companies) under “Create a batch of companies”. The docs use a function from the hubspot library callsed BatchInputSimplePublicObjectInputForCreate. That particular function does not exist as far as I can see, and I get the following error message: ImportError: cannot import name ‘BatchInputSimplePublicObjectInputForCreate’ from ‘hubspot.crm.companies’.

However, I can import and use the function to **update** a batch of companies

‘BatchInputSimplePublicObjectBatchInput’ without any problems. So I’m wondering why the create batch function does not exist and whether it will in the near future? If not, what is the easiest way then to create batches of companies with python?

---

<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:** [March 28, 2023, 4:40pm UTC](https://community.hubspot.com/t/create-batch-of-companies-function-does-not-work/78069/2 "2023-03-28T16:40:13Z")

</div>

Hey, @KBindslev 👋 Thanks for posting your question. To clarify:

- This is the endpoint you are using? [Create a batch of companies](https://developers.hubspot.com/docs/api/crm/companies) **POST** `/crm/v3/objects/companies/batch/create`
- This error occurs when you test using the Python example directly from the page?

Thanks for the additional details. This helps the community better understand the issue + recommend specific troubleshooting steps.

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![Willia\_m](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@Willia\_m](https://community.hubspot.com/u/Willia_m)\
**Post date:** [April 19, 2023, 10:30am UTC](https://community.hubspot.com/t/create-batch-of-companies-function-does-not-work/78069/3 "2023-04-19T10:30:50Z")

</div>

Hi,

I have the same problem the Python documentation for the API seems to be out of date. BatchInputSimplePublicObjectInputForCreate does not exist anymore. Should we now use BatchInputSimplePublicObjectInput or BatchInputSimplePublicObjectBatchInput ? How do we use those modules ?

Thanks
