<?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: Problem access to api crm-associations in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229571#M8467</link>
    <description>&lt;P&gt;Hello, good morning:&lt;/P&gt;
&lt;P&gt;I followed the manual and the error continues to appear. Apart from this I have tried to update a company following the manual &lt;A href="https://developers.hubspot.com/docs/methods/companies/update_company" rel="nofollow noopener"&gt;https://developers.hubspot.com/docs/methods/companies/update_company&lt;/A&gt;&lt;BR /&gt;
And I get error 405 just like in the previous case. I copy the example&lt;/P&gt;
&lt;P&gt;arr = array(&lt;BR /&gt;
properties' =&amp;gt; array(&lt;BR /&gt;
array&lt;BR /&gt;
name' =&amp;gt; 'description modified',&lt;BR /&gt;
value' =&amp;gt; 'hubspot'.&lt;BR /&gt;
)&lt;BR /&gt;
)&lt;BR /&gt;
);&lt;BR /&gt;
$post_json = json_encode($arr);&lt;BR /&gt;
//$hapikey = readline("Enter hapikey: (demo for the demo portal): ");&lt;BR /&gt;
endpoint = '&lt;A href="https://api.hubapi.com/companies/v2/companies/922536531?hapikey=XXXXXXXXXXXXXXXX" rel="nofollow noopener"&gt;https://api.hubapi.com/companies/v2/companies/922536531?hapikey=XXXXXXXXXXXXXXXX&lt;/A&gt;';&lt;BR /&gt;
$ch = &lt;SPAN class="mention"&gt;@curl_init&lt;/SPAN&gt;();&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_setopt&lt;/SPAN&gt;($ch, CURLOPT_POST, true);&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_setopt&lt;/SPAN&gt;($ch, CURLOPT_POSTFIELDS, $post_json);&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_setopt&lt;/SPAN&gt;($ch, CURLOPT_URL, $endpoint);&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_setopt&lt;/SPAN&gt;($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_setopt&lt;/SPAN&gt;($ch, CURLOPT_RETURNTRANSFER, true);&lt;BR /&gt;
response = &lt;SPAN class="mention"&gt;@curl_exec&lt;/SPAN&gt;($ch);&lt;BR /&gt;
Status_code = &lt;SPAN class="mention"&gt;@curl_getinfo&lt;/SPAN&gt;($ch, CURLINFO_HTTP_CODE);&lt;BR /&gt;
$curl_errors = curl_error($ch);&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_close&lt;/SPAN&gt;($ch);&lt;BR /&gt;
echo "curl Errors: " . $curl_errors;&lt;BR /&gt;
echo "\nStatus code: " . $status_code;&lt;BR /&gt;
echo "Reply: " . $response;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2018 10:52:02 GMT</pubDate>
    <dc:creator>CTO-BB</dc:creator>
    <dc:date>2018-09-10T10:52:02Z</dc:date>
    <item>
      <title>Problem access to api crm-associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229565#M8461</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When try to access &lt;A href="https://api.hubapi.com/crm-associations/v1/associations?hapikey=demo" rel="nofollow noopener"&gt;https://api.hubapi.com/crm-associations/v1/associations?hapikey=demo&lt;/A&gt;. It shows me the mistake&lt;BR /&gt;
HTTP ERROR 405&lt;/P&gt;
&lt;P&gt;Problem accessing /crm-associations/v1/associations. Reason:&lt;/P&gt;
&lt;P&gt;Method Not Allowed&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 08:42:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229565#M8461</guid>
      <dc:creator>CTO-BB</dc:creator>
      <dc:date>2018-08-30T08:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem access to api crm-associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229566#M8462</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/cto-bb"&gt;@CTO-BB&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;If you are attempting to &lt;A href="https://developers.hubspot.com/docs/methods/crm-associations/associate-objects" rel="nofollow noopener"&gt;associate CRM objects&lt;/A&gt;, please ensure you are using the &lt;CODE&gt;PUT&lt;/CODE&gt; method.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 14:23:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229566#M8462</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-08-31T14:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem access to api crm-associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229567#M8463</link>
      <description>&lt;P&gt;Hi Itakushi.&lt;/P&gt;
&lt;P&gt;I Have been still the steps that the post indicates and is still me appearing the mistake&lt;/P&gt;
&lt;P&gt;Kind Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 06:05:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229567#M8463</guid>
      <dc:creator>CTO-BB</dc:creator>
      <dc:date>2018-09-03T06:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem access to api crm-associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229568#M8464</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/cto-bb"&gt;@CTO-BB&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Please copy the text or a screenshot of your request below so that I can investigate. If you are using the correct method (&lt;CODE&gt;GET&lt;/CODE&gt;, &lt;CODE&gt;PUT&lt;/CODE&gt;, or &lt;CODE&gt;POST&lt;/CODE&gt;), you should not receive a &lt;EM&gt;405 Method Not Allowed&lt;/EM&gt; error.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 15:32:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229568#M8464</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-09-05T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem access to api crm-associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229569#M8465</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Weŕe mainly interested in creating a conversation or ticket through the API. From what weve seen the ticket section doesnt allow to associate tickets with contacts.&lt;/P&gt;
&lt;P&gt;CAn you please give us support on this matter and let us know how to proceed to create a conversation?&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 10:41:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229569#M8465</guid>
      <dc:creator>CTO-BB</dc:creator>
      <dc:date>2018-09-06T10:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem access to api crm-associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229570#M8466</link>
      <description>&lt;P&gt;Thank you for the clarification, &lt;A class="mention" href="https://community.hubspot.com/u/cto-bb"&gt;@CTO-BB&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;At this time, the &lt;A href="https://developers.hubspot.com/docs/methods/tickets/create-ticket" rel="nofollow noopener"&gt;Tickets API&lt;/A&gt; can't create associations with contacts, but the &lt;A href="https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview" rel="nofollow noopener"&gt;CRM Associations API&lt;/A&gt; can.&lt;/P&gt;
&lt;P&gt;For example, &lt;A href="https://developers.hubspot.com/docs/methods/crm-associations/associate-objects" rel="nofollow noopener"&gt;this endpoint&lt;/A&gt; can associate a ticket to a contact with &lt;CODE&gt;"definitionId": 15&lt;/CODE&gt; if both object IDs are included.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:47:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229570#M8466</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-09-07T19:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem access to api crm-associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229571#M8467</link>
      <description>&lt;P&gt;Hello, good morning:&lt;/P&gt;
&lt;P&gt;I followed the manual and the error continues to appear. Apart from this I have tried to update a company following the manual &lt;A href="https://developers.hubspot.com/docs/methods/companies/update_company" rel="nofollow noopener"&gt;https://developers.hubspot.com/docs/methods/companies/update_company&lt;/A&gt;&lt;BR /&gt;
And I get error 405 just like in the previous case. I copy the example&lt;/P&gt;
&lt;P&gt;arr = array(&lt;BR /&gt;
properties' =&amp;gt; array(&lt;BR /&gt;
array&lt;BR /&gt;
name' =&amp;gt; 'description modified',&lt;BR /&gt;
value' =&amp;gt; 'hubspot'.&lt;BR /&gt;
)&lt;BR /&gt;
)&lt;BR /&gt;
);&lt;BR /&gt;
$post_json = json_encode($arr);&lt;BR /&gt;
//$hapikey = readline("Enter hapikey: (demo for the demo portal): ");&lt;BR /&gt;
endpoint = '&lt;A href="https://api.hubapi.com/companies/v2/companies/922536531?hapikey=XXXXXXXXXXXXXXXX" rel="nofollow noopener"&gt;https://api.hubapi.com/companies/v2/companies/922536531?hapikey=XXXXXXXXXXXXXXXX&lt;/A&gt;';&lt;BR /&gt;
$ch = &lt;SPAN class="mention"&gt;@curl_init&lt;/SPAN&gt;();&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_setopt&lt;/SPAN&gt;($ch, CURLOPT_POST, true);&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_setopt&lt;/SPAN&gt;($ch, CURLOPT_POSTFIELDS, $post_json);&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_setopt&lt;/SPAN&gt;($ch, CURLOPT_URL, $endpoint);&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_setopt&lt;/SPAN&gt;($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_setopt&lt;/SPAN&gt;($ch, CURLOPT_RETURNTRANSFER, true);&lt;BR /&gt;
response = &lt;SPAN class="mention"&gt;@curl_exec&lt;/SPAN&gt;($ch);&lt;BR /&gt;
Status_code = &lt;SPAN class="mention"&gt;@curl_getinfo&lt;/SPAN&gt;($ch, CURLINFO_HTTP_CODE);&lt;BR /&gt;
$curl_errors = curl_error($ch);&lt;BR /&gt;
&lt;SPAN class="mention"&gt;@curl_close&lt;/SPAN&gt;($ch);&lt;BR /&gt;
echo "curl Errors: " . $curl_errors;&lt;BR /&gt;
echo "\nStatus code: " . $status_code;&lt;BR /&gt;
echo "Reply: " . $response;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 10:52:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229571#M8467</guid>
      <dc:creator>CTO-BB</dc:creator>
      <dc:date>2018-09-10T10:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem access to api crm-associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229572#M8468</link>
      <description>&lt;P&gt;Any updates on the required request?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:22:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229572#M8468</guid>
      <dc:creator>CTO-BB</dc:creator>
      <dc:date>2018-09-13T10:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem access to api crm-associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229573#M8469</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/cto-bb"&gt;@CTO-BB&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;To &lt;A href="https://developers.hubspot.com/docs/methods/companies/update_company" rel="nofollow noopener"&gt;update a company&lt;/A&gt;, you must use &lt;CODE&gt;PUT&lt;/CODE&gt;. In that cURL code, you are using &lt;CODE&gt;POST&lt;/CODE&gt;, which is why &lt;EM&gt;405 Method Not Allowed&lt;/EM&gt; is returned.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 17:30:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229573#M8469</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-09-14T17:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem access to api crm-associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229574#M8470</link>
      <description>&lt;P&gt;Hi Itakushi,&lt;/P&gt;
&lt;P&gt;The problem has been solved. The call had to be made with the put method and not with post.&lt;/P&gt;
&lt;P&gt;Thanks for you colaboration&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 06:28:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-access-to-api-crm-associations/m-p/229574#M8470</guid>
      <dc:creator>CTO-BB</dc:creator>
      <dc:date>2018-09-17T06:28:54Z</dc:date>
    </item>
  </channel>
</rss>

