How to use API method for Creating Subtasks? The Subtasks are duplicating outside the Parent Task.

I am trying to create Subtasks under a specific Parent Task. The API created the Subtask under the Parent task but also is duplicating under the folder that the Parent Task is in as shown here: 

 

 

 

 

I am currently using the end point specifying the {folderId} and adding the "superTasks" parameter. Can you give some guidance on what is going on here and explain what the mean in the docs for Creating Tasks that says "When creating a subtask, use the Root API ID as {folderId} and specify the parent task in the 'superTasks' parameter." 

 

 

1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
1 comentário

Hi Nicholas,

I came across your post and wanted to share a solution, as I recently encountered and resolved this exact issue after several days of troubleshooting.

The key point is that when creating a subtask, the folderId should be set to the rootFolderId of your account, not the folderId of your project or parent folder.  You can retrieve the rootFolderId by running the Get account information endpoint (example below) using Postman or any other API client you’re using:

GET {{WrikeAPI}}/account?fields=[subscription,metadata,customFields]

In the response, look under data > rootFolderId.

Hope this helps!

2
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Folllowing List for Post: How to use API method for Creating Subtasks? The Subtasks are duplicating outside the Parent Task.
[this list is visible for admins and agents only]

Alto

Upcoming Live Sessions

Didn’t find what you were looking for? Write new post