Add tasklist from a template to Zoho Project using Deluge

Add tasklist from a template to Zoho Project using Deluge

I have some tasklist templates that I want to be able to add to a project under certain circumstances.  So if a project meets Condition A, add the tasklist from Template B to that project.  If it meets condition C, add tasklist from Template D, and so on.

Can someone point me in a good direction here?  I would assume that I would need to get all the tasklists, find the ID of the one I want, and then append that tasklist to the project.  I'd also be interested in being sure to append it in a specific position on the project.  That is, I have a tasklist on the project already...call it "General Tasks".  I want Tasklist B to be AFTER that template, and Tasklist D to be after "B".