Convert task to Project

In the UI, there’s an option to convert a task to a project. Is there a way to do the same through the API? I need to have the same behavior in the ui, i cant find any way to have this behavior in the ui through api

A post was merged into an existing topic: Convert task to Project via API