Redeploy a deployment via API

I have been trying to find a way to redeploy a deployment using the Rancher API. Our Rancher version is 2.6.3. I have been able to find the way for deployments that are part of a Rancher project. Seems this call does the trick:


But how should it be done when the workload is not part of a project?

I tried to use the projectid from the https://${RANCHER_URL}/v3/clusters/${CLUSTER_ID}/projects but I get “invalid workload type” response when using this project id.