Skip to content

Allow maintainers to change project name via API

Jiovanni Castillo requested to merge j.castillo-master-patch-21866 into master

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
image image

How to set up and validate locally

  1. Assign the Maintainer role to a user for a project
  2. Create a PAT with an API scope
  3. 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.

Edited by Jiovanni Castillo

Merge request reports