Aug 30, 2018 4:42 AM
Hi,
When try to access https://api.hubapi.com/crm-associations/v1/associations?hapikey=demo. It shows me the mistake
HTTP ERROR 405
Problem accessing /crm-associations/v1/associations. Reason:
Method Not Allowed
Kind Regards
Solved! Go to Solution.
Sep 17, 2018 2:28 AM
Hi Itakushi,
The problem has been solved. The call had to be made with the put method and not with post.
Thanks for you colaboration
Kind Regards
Sep 17, 2018 2:28 AM
Hi Itakushi,
The problem has been solved. The call had to be made with the put method and not with post.
Thanks for you colaboration
Kind Regards
Sep 10, 2018 6:52 AM
Hello, good morning:
I followed the manual and the error continues to appear. Apart from this I have tried to update a company following the manual https://developers.hubspot.com/docs/methods/companies/update_company
And I get error 405 just like in the previous case. I copy the example
arr = array(
properties' => array(
array
name' => 'description modified',
value' => 'hubspot'.
)
)
);
$post_json = json_encode($arr);
//$hapikey = readline("Enter hapikey: (demo for the demo portal): ");
endpoint = 'https://api.hubapi.com/companies/v2/companies/922536531?hapikey=XXXXXXXXXXXXXXXX';
$ch = @curl_init();
@curl_setopt($ch, CURLOPT_POST, true);
@curl_setopt($ch, CURLOPT_POSTFIELDS, $post_json);
@curl_setopt($ch, CURLOPT_URL, $endpoint);
@curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
response = @curl_exec($ch);
Status_code = @curl_getinfo($ch, CURLINFO_HTTP_CODE);
$curl_errors = curl_error($ch);
@curl_close($ch);
echo "curl Errors: " . $curl_errors;
echo "\nStatus code: " . $status_code;
echo "Reply: " . $response;
Kind Regards
Sep 13, 2018 6:22 AM
Any updates on the required request?
Sep 14, 2018 1:30 PM
Hi @CTO-BB,
To update a company, you must use PUT
. In that cURL code, you are using POST
, which is why 405 Method Not Allowed is returned.
Isaac TakushiAssociate Certification Manager |
Sep 6, 2018 6:41 AM
Hi!
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.
CAn you please give us support on this matter and let us know how to proceed to create a conversation?
Many thanks
Sep 7, 2018 3:47 PM
Thank you for the clarification, @CTO-BB.
At this time, the Tickets API can't create associations with contacts, but the CRM Associations API can.
For example, this endpoint can associate a ticket to a contact with "definitionId": 15
if both object IDs are included.
Isaac TakushiAssociate Certification Manager |
Sep 3, 2018 2:05 AM
Hi Itakushi.
I Have been still the steps that the post indicates and is still me appearing the mistake
Kind Regards.
Sep 5, 2018 11:32 AM
Hi @CTO-BB,
Please copy the text or a screenshot of your request below so that I can investigate. If you are using the correct method (GET
, PUT
, or POST
), you should not receive a 405 Method Not Allowed error.
Isaac TakushiAssociate Certification Manager |
Aug 31, 2018 10:23 AM
Hi @CTO-BB,
If you are attempting to associate CRM objects, please ensure you are using the PUT
method.
Isaac TakushiAssociate Certification Manager |