<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create batch of companies - function does not work? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Create-batch-of-companies-function-does-not-work/m-p/783783#M63277</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same problem the Python documentation for the API seems to be out of date.&amp;nbsp;&lt;SPAN&gt;BatchInputSimplePublicObjectInputForCreate does not exist anymore. Should we now use&amp;nbsp;BatchInputSimplePublicObjectInput or&amp;nbsp;BatchInputSimplePublicObjectBatchInput ? How do we use those modules ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 10:30:50 GMT</pubDate>
    <dc:creator>Willia_m</dc:creator>
    <dc:date>2023-04-19T10:30:50Z</dc:date>
    <item>
      <title>Create batch of companies - function does not work?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Create-batch-of-companies-function-does-not-work/m-p/774348#M62609</link>
      <description>&lt;P&gt;I'm trying to create a batch of companies in Hubspot with python. I'm following the docs here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/companies" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/companies&lt;/A&gt;&amp;nbsp;under "Create a batch of companies". The docs use a function from the hubspot library callsed&amp;nbsp;BatchInputSimplePublicObjectInputForCreate. That particular function does not exist as far as I can see, and I get the following error message:&amp;nbsp;ImportError: cannot import name 'BatchInputSimplePublicObjectInputForCreate' from 'hubspot.crm.companies'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I can import and use the function to &lt;STRONG&gt;update&lt;/STRONG&gt; a batch of companies&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;'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?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Mar 2023 12:20:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Create-batch-of-companies-function-does-not-work/m-p/774348#M62609</guid>
      <dc:creator>KBindslev</dc:creator>
      <dc:date>2023-03-27T12:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create batch of companies - function does not work?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Create-batch-of-companies-function-does-not-work/m-p/775023#M62649</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/543728"&gt;@KBindslev&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for posting your question. To clarify:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;This is the endpoint you are using?&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/companies" target="_blank" rel="noopener"&gt;Create a batch of companies&lt;/A&gt;&amp;nbsp;&lt;STRONG class="PathUrl__StyledMethod-sc-8bg98g-1 ctOkWy"&gt;POST&lt;/STRONG&gt;&lt;CODE class="PathUrl__StyledCode-sc-8bg98g-2 gnXRUb private-code"&gt;&lt;SPAN class="PathUrl__StyledPath-sc-8bg98g-3 gWqzUa"&gt;&lt;SPAN class="private-truncated-string" data-content="true"&gt;&lt;SPAN class="private-truncated-string__inner"&gt;&lt;SPAN class="private-truncated-string__reverse"&gt;&lt;SPAN class="private-truncated-string__reverse__tail"&gt;&lt;SPAN class="private-truncated-string__reverse__content"&gt;/crm/v3/objects/companies/batch/create&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;This error occurs when you test using the Python example directly from the page?&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks for the additional details. This helps the community better understand the issue + recommend specific troubleshooting steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 16:40:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Create-batch-of-companies-function-does-not-work/m-p/775023#M62649</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-03-28T16:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create batch of companies - function does not work?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Create-batch-of-companies-function-does-not-work/m-p/783783#M63277</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same problem the Python documentation for the API seems to be out of date.&amp;nbsp;&lt;SPAN&gt;BatchInputSimplePublicObjectInputForCreate does not exist anymore. Should we now use&amp;nbsp;BatchInputSimplePublicObjectInput or&amp;nbsp;BatchInputSimplePublicObjectBatchInput ? How do we use those modules ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:30:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Create-batch-of-companies-function-does-not-work/m-p/783783#M63277</guid>
      <dc:creator>Willia_m</dc:creator>
      <dc:date>2023-04-19T10:30:50Z</dc:date>
    </item>
  </channel>
</rss>

