Firtname and Surname when create ticket

Hi team,
when creating a ticket (Accounts Dashboard | HubSpot) you normally set a custom property to a specific value , for example:

 {
 "name": "subject",
 "value": "This is an example ticket"
 },
 {
 "name": "content",
 "value": "Here are the details of the ticket."
 },

but how can I add the Name and Surname to the ticket? in a ticket you normally see in the Contact section the Name + Surname and underneath the email

I imagine that maybe I have to create a contact ? (https://developers.hubspot.com/docs/methods/contacts/create_contact) if so how do I associate it with ticket?

Hi @codeling

Yes, you’re right - the best plan of attack is to create the Contact and the Ticket and glue them together with the CRM Associations:

developers.hubspot.com

Associate CRM objects

PUT /crm-associations/v1/associations - Associate 2 CRM objects

You’ll need to choose the " Association definitions" from the table on this page:

developers.hubspot.com

CRM associations overview

The CRM Associations API is used to manage associations between tickets, products, line items, and their related contacts, companies, and deals.

Have fun
Mike

Sorry for late reply, this is what I needed, thanks a lot
smiley.png