How do I setup a related contact lead with the task api.

How do I setup a related contact lead with the task api.

I am creating tasks via the api. I can send Description, Task Owner,Subject,Status.  How do I send a client/lead/contact. What is the field name and what is the value Do I send an email  a userID or what. I want to attach a client to the task.

thanks for you help