How to create a ticket via API including custom objects

How I create a ticket via API including some custom objects?

Simply create the ticket and add the name of the custom object as property. (Works at least for organizations and users, so I guess it will work for tickets as well.)