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>2016-04-12 19:38:18 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-04-13 12:31:50 +0300
commit2b036025d619c51cff74e4eb430f50d43d1d8cdb (patch)
tree9c66c1ffdc22308dfda36fa4af64601a90e9df7a /doc
parent482f67edb46423d4fc567e061d6546d8dfafc7bb (diff)
Update tests for moving issues via API
Diffstat (limited to 'doc')
-rw-r--r--doc/api/issues.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/api/issues.md b/doc/api/issues.md
index a540a27ce11..a3ac48fba7e 100644
--- a/doc/api/issues.md
+++ b/doc/api/issues.md
@@ -353,7 +353,11 @@ curl -X DELETE -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.c
## Move an issue
-Moves an issue to a different project. If the operation is successful, a status code `200` together with moved issue is returned. If the project, issue, or target project is not found, error `404` is returned. If the target project equals the source project or the user has insufficient permissions to move an issue, error `400` together with an explaining error message is returned.
+Moves an issue to a different project. If the operation is successful, a status
+code `201` together with moved issue is returned. If the project, issue, or
+target project is not found, error `404` is returned. If the target project
+equals the source project or the user has insufficient permissions to move an
+issue, error `400` together with an explaining error message is returned.
```
POST /projects/:id/issues/:issue_id/move
@@ -363,7 +367,7 @@ POST /projects/:id/issues/:issue_id/move
| --------- | ---- | -------- | ----------- |
| `id` | integer | yes | The ID of a project |
| `issue_id` | integer | yes | The ID of a project's issue |
-| `new_project_id` | integer | yes | The ID the new project |
+| `to_project_id` | integer | yes | The ID the new project |
```bash
curl -X POST -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/4/issues/85/move