Add to_project_id parameter to Move Issue via API example

This commit is contained in:
Mark Fletcher 2017-09-02 13:52:12 +08:00
parent 19dfd9e9d6
commit 03af5e2e8d
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: Add to_project_id parameter to Move Issue via API example
merge_request:
author:
type: fixed

View file

@ -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: