diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-20 18:07:53 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-20 18:07:53 +0000 |
commit | 682360490629376e2ec07d737c7d7dbfdaaeeab7 (patch) | |
tree | 7abe62a4d200738ac086ac0c0bd633ce0bc03f00 /doc/api | |
parent | 2f26f81ce3e3f97ddc5ce5e2e103925d7d0d170f (diff) | |
download | gitlab-ce-682360490629376e2ec07d737c7d7dbfdaaeeab7.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/issue_links.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/api/issue_links.md b/doc/api/issue_links.md index b7e21310a19..9351b3e4dd5 100644 --- a/doc/api/issue_links.md +++ b/doc/api/issue_links.md @@ -57,7 +57,7 @@ Parameters: Creates a two-way relation between two issues. User must be allowed to update both issues in order to succeed. ``` -POST /projects/:id/issues/:issue_iid/links/:target_project_id/:target_issue_iid +POST /projects/:id/issues/:issue_iid/links ``` | Attribute | Type | Required | Description | @@ -67,6 +67,12 @@ POST /projects/:id/issues/:issue_iid/links/:target_project_id/:target_issue_iid | `target_project_id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) of a target project | | `target_issue_iid` | integer/string | yes | The internal ID of a target project's issue | +```bash +curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/4/issues/1/links?target_project_id=5&target_issue_iid=1" +``` + +Example response: + ```json { "source_issue" : { |