Transfer of a subgroup to a new group in gitlab with rest api

I have two sub-groups named abc(id=13251) and def(id=13389) under a group "main" which is also a subgroup to "root" group I am trying to transfer abc from main group to def as a new parent group with below curl request. But it is giving 404 error:

curl --request POST --header "PRIVATE-TOKEN: mytoken" "https://gitlab/api/v4/groups/13251/transfer?group_id=13389" {“error”:“404 Not Found”} Can you please let me know what is the issue here? do i need to refer “main” group id somewhere as well ?

is it due to Gitlab version ? I found an article where “transfer” api was introduced for groups in gitlab later. I am using Gitlab EE 13.12.15. is it that this api is not available in this version of Gitlab ?

Hi, according to the docs: Groups API | GitLab

The command you are using was introduced in Gitlab 14.6. Since you don’t have Gitlab 14.6 you cannot use that API command. I suggest upgrading your Gitlab instance to at least 14.6 and then you should be able to do this.

1 Like