I had created a contact in hubspot and then i tried to create ticket in which i got success. But when i am trying to attach contact to that ticket via association api i am stuck and getting error in api about java.lang.string error. here is the code that i tried.
const createTicketResponse = await hubspotClient.crm.tickets.basicApi.create(ticketObj)
await hubspotClient.crm.tickets.associationsApi.create(createTicketResponse.id, “tickets”, “151”, ‘’)
Here 151 is contact id.