summaryrefslogtreecommitdiff
path: root/doc/api/labels.md
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2019-02-14 11:40:28 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2019-08-26 10:45:37 +0200
commitefafc98bd8ca7d4ed4c86f19325eb2aa51edd227 (patch)
tree3a0c83856bbab2356b06fc1747053413d0b8f99e /doc/api/labels.md
parent41412f73604159ca735420396df73f7b6eef6f86 (diff)
downloadgitlab-ce-efafc98bd8ca7d4ed4c86f19325eb2aa51edd227.tar.gz
Move promote to put and add more specs
Diffstat (limited to 'doc/api/labels.md')
-rw-r--r--doc/api/labels.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/labels.md b/doc/api/labels.md
index 9b640a0203d..21ac8a99965 100644
--- a/doc/api/labels.md
+++ b/doc/api/labels.md
@@ -193,7 +193,7 @@ Example response:
Promotes a project label to a group label.
```
-POST /projects/:id/labels/promote
+PUT /projects/:id/labels/promote
```
| Attribute | Type | Required | Description |
@@ -202,7 +202,7 @@ POST /projects/:id/labels/promote
| `name` | string | yes | The name of the existing label |
```bash
-curl --request POST --data "name=documentation" --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/labels/promote"
+curl --request PUT --data "name=documentation" --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/labels/promote"
```
Example response: