From d575ee3e90a7b13e4ed29fdea0b611ae8ef50496 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 23 May 2014 15:34:02 +0300 Subject: Improve branch deletion via API Signed-off-by: Dmitriy Zaporozhets --- doc/api/branches.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc/api') 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. -- cgit v1.2.1