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 ?
Edited by Rohit Goel