I was able to create a custom API for saveTask by following the lines of TaskServiceSession.addTask method. But i was not sure if that was the right approach and if there is any inbuilt API which can be used for this.
Thanks Kris for the suggestions. I would reach out if i have any other questions.
Thanks
Ranjith