How can I add a project to a group with developer access using API??

When I’m trying to transfer a project to a group as a developer, I’m getting a message like this

{"message":"Failed to transfer project {:new_namespace=\u003e[\"Transfer failed, please contact an admin.\"]}"}

I refer the following documentation

https://docs.gitlab.com/ee/api/projects.html#transfer-a-project-to-a-new-namespace

I there any alternative method available for adding a project to a