summaryrefslogtreecommitdiff
path: root/doc/api/branches.md
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-23 15:34:02 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-23 15:34:02 +0300
commitd575ee3e90a7b13e4ed29fdea0b611ae8ef50496 (patch)
treef5b13df2d0de14f80ae3c8833179e72ceb0dc699 /doc/api/branches.md
parent8ae2d2152b197931725a3f4b9aa3697f37988c20 (diff)
downloadgitlab-ce-d575ee3e90a7b13e4ed29fdea0b611ae8ef50496.tar.gz
Improve branch deletion via API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'doc/api/branches.md')
-rw-r--r--doc/api/branches.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/api/branches.md b/doc/api/branches.md
index da9d4193f20..bb2d3fec09d 100644
--- a/doc/api/branches.md
+++ b/doc/api/branches.md
@@ -199,3 +199,17 @@ Parameters:
"protected": false
}
```
+
+## Delete repository branch
+
+
+```
+DELETE /projects/:id/repository/branches/:branch
+```
+
+Parameters:
+
++ `id` (required) - The ID of a project
++ `branch` (required) - The name of the branch
+
+It return 200 if succeed or 405 if failed with error message explaining reason.