You need to include an association array in your request. This contains the ID of the CRM object that you'd like to associate to the ticket. For instance if I had a contact with ID "951" I could create the ticket and associate using the following request:
You can use the CRM Search API to check to see if the contact exists in the CRM prior to making the above request. If they do their ID will be returned which you can use for the association. If they do not you can create a contact and use the returned ID to create the association.
You need to include an association array in your request. This contains the ID of the CRM object that you'd like to associate to the ticket. For instance if I had a contact with ID "951" I could create the ticket and associate using the following request:
You can use the CRM Search API to check to see if the contact exists in the CRM prior to making the above request. If they do their ID will be returned which you can use for the association. If they do not you can create a contact and use the returned ID to create the association.