Allow maintainers to change project name via API
What does this MR do and why?
Fixes #375033 (closed), allowing maintainers to update project names via the API.
Aligns to the Permissions and roles - Projects:Rename project documentation as maintainers can already make this change via the UI.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Assign the Maintainer role to a user for a project
- Create a PAT with an API scope
- Send a PUT request to the projects API
curl --request PUT {instance_url}/api/v4/projects/:projectID --header "PRIVATE-TOKEN: token" --data "name=rename"
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jiovanni Castillo