Create Task and relate it to a Potential

Create Task and relate it to a Potential

I can do this through the web console but when I attempt to do it through the rubyzoho gem I can't seem to get it working. Any help would be greatly appreciated.