From efafc98bd8ca7d4ed4c86f19325eb2aa51edd227 Mon Sep 17 00:00:00 2001 From: Robert Schilling Date: Thu, 14 Feb 2019 11:40:28 +0100 Subject: Move promote to put and add more specs --- doc/api/labels.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/api') 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: " "https://gitlab.example.com/api/v4/projects/1/labels/promote" +curl --request PUT --data "name=documentation" --header "PRIVATE-TOKEN: " "https://gitlab.example.com/api/v4/projects/1/labels/promote" ``` Example response: -- cgit v1.2.3