diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 18:38:18 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-13 11:31:50 +0200 |
commit | 2b036025d619c51cff74e4eb430f50d43d1d8cdb (patch) | |
tree | 9c66c1ffdc22308dfda36fa4af64601a90e9df7a /doc/api | |
parent | 482f67edb46423d4fc567e061d6546d8dfafc7bb (diff) | |
download | gitlab-ce-2b036025d619c51cff74e4eb430f50d43d1d8cdb.tar.gz |
Update tests for moving issues via API
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/issues.md | 8 |
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 |