Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2015-03-01 15:02:12 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2015-03-01 15:02:12 +0300
commit4e5bc1d5356e860be316656fd8c3393c468d24b6 (patch)
treef4fba1f014df5b071a7864e9198397a6e2cf4304 /doc
parent93bacb03e5ea33a67bcc8198862a23d2038bf6ef (diff)
parent874640123b9b508fef40d4285a7c28d7e4653dd7 (diff)
Merge branch 'master' into 'master'
Error in docs for closing an issue API docs for issues says you set parameter 'closed' to '1'. I was not able to do that but I could set 'state_event' to 'close' which closed the issue. Does not work "https://gitlab.com/api/v3/projects/:id/issues/:issue_id?closed=1" Does work "https://gitlab.com/api/v3/projects/:id/issues/:issue_id?state_event=close" See merge request !342
Diffstat (limited to 'doc')
-rw-r--r--doc/api/issues.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/issues.md b/doc/api/issues.md
index 5a2f6a4c229..a7dd8b74c35 100644
--- a/doc/api/issues.md
+++ b/doc/api/issues.md
@@ -208,7 +208,7 @@ If an error occurs, an error number and a message explaining the reason is retur
## Delete existing issue (**Deprecated**)
-The function is deprecated and returns a `405 Method Not Allowed` error if called. An issue gets now closed and is done by calling `PUT /projects/:id/issues/:issue_id` with parameter `closed` set to 1.
+The function is deprecated and returns a `405 Method Not Allowed` error if called. An issue gets now closed and is done by calling `PUT /projects/:id/issues/:issue_id` with parameter `state_event` set to `close`.
```
DELETE /projects/:id/issues/:issue_id