summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2017-09-02 13:52:12 +0800
committerMark Fletcher <mark@gitlab.com>2017-09-02 13:52:12 +0800
commit03af5e2e8d9f6ca2c438fd8243ab7f6aa86462c4 (patch)
treeae9945a5df46390ac90c504dfc8383518d300d49
parent19dfd9e9d6cf8c260dea6a339b1842fc2399729e (diff)
downloadgitlab-ce-03af5e2e8d9f6ca2c438fd8243ab7f6aa86462c4.tar.gz
Add to_project_id parameter to Move Issue via API example
-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 f30ed08d0fa..5da715ee1b5 100644
--- a/doc/api/issues.md
+++ b/doc/api/issues.md
@@ -558,7 +558,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: