summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2017-09-04 09:06:20 +0000
committerAchilleas Pipinellis <axil@gitlab.com>2017-09-04 09:06:20 +0000
commitd8633bd14a949b627a7653ed451af5e1ef613e19 (patch)
treea3d9a4ea36d1fc656aac3058b918c59e6ed6a8ad
parentb378ae6850e7c72ef97d62e477f51c0b0c5c0544 (diff)
parent03af5e2e8d9f6ca2c438fd8243ab7f6aa86462c4 (diff)
downloadgitlab-ce-d8633bd14a949b627a7653ed451af5e1ef613e19.tar.gz
Merge branch 'docs-fix-15669-issue-move-api' into 'master'
Add to_project_id parameter to Move Issue via API example Closes #15669 See merge request !14008
-rw-r--r--changelogs/unreleased/docs-fix-15669-issue-move-api.yml5
-rw-r--r--doc/api/issues.md2
2 files changed, 6 insertions, 1 deletions
diff --git a/changelogs/unreleased/docs-fix-15669-issue-move-api.yml b/changelogs/unreleased/docs-fix-15669-issue-move-api.yml
new file mode 100644
index 00000000000..db68428fda3
--- /dev/null
+++ b/changelogs/unreleased/docs-fix-15669-issue-move-api.yml
@@ -0,0 +1,5 @@
+---
+title: Add to_project_id parameter to Move Issue via API example
+merge_request:
+author:
+type: fixed
diff --git a/doc/api/issues.md b/doc/api/issues.md
index 14635114a31..765246142c1 100644
--- a/doc/api/issues.md
+++ b/doc/api/issues.md
@@ -594,7 +594,7 @@ POST /projects/:id/issues/:issue_iid/move
| `to_project_id` | integer | yes | The ID of the new project |
```bash
-curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects/4/issues/85/move
+curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --data '{"to_project_id": 5}' https://gitlab.example.com/api/v4/projects/4/issues/85/move
```
Example response: