Add a project to a group with developer access using API

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 group with developer access.

Please help me if you have idea on this
Thanks in advance

Please take a look at https://docs.gitlab.com/ee/user/permissions.html, role developer is not sufficient for transferring projects. You need to be group owner in both the source and destination group.

Ok thanks let me try some others methods of implementation