Problem access to api crm-associations



When try to access It shows me the mistake

Problem accessing /crm-associations/v1/associations. Reason:

Method Not Allowed

Kind Regards



If you are attempting to associate CRM objects, please ensure you are using the PUT method.


Hi Itakushi.

I Have been still the steps that the post indicates and is still me appearing the mistake

Kind Regards.



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.



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


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.


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
And I get error 405 just like in the previous case. I copy the example

arr = array(
properties' => array(
name' => 'description modified',
value' => 'hubspot'.
$post_json = json_encode($arr);
//$hapikey = readline("Enter hapikey: (demo for the demo portal): ");
endpoint = '';
$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);
echo "curl Errors: " . $curl_errors;
echo "\nStatus code: " . $status_code;
echo "Reply: " . $response;

Kind Regards


Any updates on the required request?



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.


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