$this->crmService is a valid instance of the hubspot client. The deail and company ids are valid object ids. I am getting the following error
// This is from the hubspot api log
{"status":"error","message":"Invalid input JSON on line 1, column 1: Cannot deserialize value of type `java.util.HashSet<com.hubspot.inbounddb.associations.base.AssociationSpec>` from Object value (token `JsonToken.START_OBJECT`)","correlationId":"5ce66222-a847-4311-978f-1a688b9bcba2"}
//This is the app error I get as a response
HubSpot\Client\Crm\Deals\ApiException: [400] Client error: `PUT https://api.hubapi.com/crm/v4/objects/deals/12768212567/associations/company/15237024337` resulted in a `400 Bad Request` response:
{"status":"error","message":"Invalid input JSON on line 1, column 1: Cannot deserialize value of type `java.util.HashSet (truncated...)
in /var/www/html/vendor/hubspot/api-client/codegen/Crm/Deals/Api/AssociationsApi.php on line 442
I believe the association spec is wrong but I can not figure out what is wrong. Any help would be appreciated