summaryrefslogtreecommitdiff
path: root/doc/api/projects.md
diff options
context:
space:
mode:
authorMika Mäenpää <mika.j.maenpaa@tut.fi>2014-10-15 09:57:35 +0300
committerHannes Rosenögger <Hannes.Rosenoegger@bva.bund.de>2015-01-22 16:58:01 +0100
commit7dd5656a5b352dd5df5dabeeebdb21d7ffd9ef03 (patch)
tree52b0642a3a910c333609c7c2da6fb434447a8f81 /doc/api/projects.md
parent1050f5230eec21cf47d5af262a1b3e62c07fec5d (diff)
downloadgitlab-ce-7dd5656a5b352dd5df5dabeeebdb21d7ffd9ef03.tar.gz
Implement edit via API for projects
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r--doc/api/projects.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index 027a8ec2e7f..d7804689c25 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -287,6 +287,31 @@ Parameters:
- `visibility_level` (optional)
- `import_url` (optional)
+### Edit project
+
+Updates an existing project
+
+```
+PUT /projects/:id
+```
+
+Parameters:
+
+- `id` (required) - The ID of a project
+- `name` (optional) - project name
+- `path` (optional) - repository name for project
+- `description` (optional) - short project description
+- `default_branch` (optional)
+- `issues_enabled` (optional)
+- `merge_requests_enabled` (optional)
+- `wiki_enabled` (optional)
+- `snippets_enabled` (optional)
+- `public` (optional) - if `true` same as setting visibility_level = 20
+- `visibility_level` (optional)
+
+On success, method returns 200 with the updated project. If parameters are
+invalid, 400 is returned.
+
### Fork project
Forks a project into the user namespace of the authenticated user.