update_project
Update existing GitLab project settings such as visibility, default branch, and feature access levels. Modifies remote state, requiring the correct project permissions.
Instructions
Update project settings such as description, visibility, default branch, and feature access levels. Use this for an existing resource; choose the corresponding create tool for a new resource and a note tool for discussion-only text. It changes remote GitLab state and requires the necessary project or group permission; GitLab returns validation, conflict, permission, or rate-limit errors instead of silently applying an invalid request. When project_id or group_id is accepted, provide the numeric ID or complete URL-encoded path described by the schema; use required identifiers and pagination fields exactly as documented.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Project display name | |
| path | No | Project path/slug | |
| topics | No | Project topics | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| visibility | No | Project visibility | |
| description | No | Project description | |
| merge_method | No | Merge method | |
| squash_option | No | Squash commits setting | |
| default_branch | No | Default branch name | |
| wiki_access_level | No | Wiki feature visibility | |
| pages_access_level | No | Pages feature visibility | |
| builds_access_level | No | CI/CD pipelines feature visibility | |
| issues_access_level | No | Issues feature visibility | |
| forking_access_level | No | Forking feature visibility | |
| snippets_access_level | No | Snippets feature visibility | |
| request_access_enabled | No | Allow users to request access | |
| environments_access_level | No | Environments feature visibility | |
| merge_requests_access_level | No | Merge requests feature visibility | |
| package_registry_access_level | No | Package registry feature visibility | |
| container_registry_access_level | No | Container registry feature visibility | |
| remove_source_branch_after_merge | No | Remove source branches after merge by default | |
| only_allow_merge_if_pipeline_succeeds | No | Require successful pipeline before merge | |
| only_allow_merge_if_all_discussions_are_resolved | No | Require all discussions to be resolved before merge |