Skip to content

Introduce API to transfer a group to a different parent group

What does this MR do and why?

For #23831 (closed)

This MR introduces a new API to transfer a specific group to a new target group, of the form

POST /groups/4/transfer?group_id=7

This transfers group 4 to within the group with id 7.

When group_id is not specified, the source group will be promoted to a root group, so like

POST /groups/4/transfer

This makes group 4 turn into a root group. (This behaviour is akin to how Group transfer behaves via the UI)

Screenshots or screen recordings

How to set up and validate locally

This can be validated locally using the API endpoint mentioned in the documentation.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Manoj M J

Merge request reports