Duplication of Task with subtasks and subsections with the API

Is it possible to duplicate a Task with its subtasks and subsections via the API? I didn’t find in the documentation the available parameters for the duplication of tasks, only Projects.


Hi @Eden

Whilst not a Dev using the API I use a couple of tools that utilise the API and I believe that using the API it does duplicate the SubTasks.
Looking at the API Doc it does have this section…

Which does include the SubTasks. SubSections in SubTasks are still just ordinary tasks so they should duplicate.

I hope this helps. There is lots of guru’s of API dev work so am sure someone will confirm for you.



1 Like

Got it, Thanks!

1 Like


Thanks for the tip it worked like charm, how I can set the due date or custom field for the new created task? or shall I go the long way get task, get fields, update fields?

You can try to use the due_on Parameter with a date format of YYYY-MM-DD, the custom field you’ll most definitely have to update separately.

You will need to do a separate PUT request to update the Task with those fields - see this post. Improved Zapier Functionality (For Project Creation)

When duplicating you will receive the GID of the Duplicate task, use that to reference the newly created/duplicated task - no need to GET