From 03af5e2e8d9f6ca2c438fd8243ab7f6aa86462c4 Mon Sep 17 00:00:00 2001 From: Mark Fletcher Date: Sat, 2 Sep 2017 13:52:12 +0800 Subject: [PATCH] Add to_project_id parameter to Move Issue via API example --- changelogs/unreleased/docs-fix-15669-issue-move-api.yml | 5 +++++ doc/api/issues.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/docs-fix-15669-issue-move-api.yml 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: