summaryrefslogtreecommitdiff
path: root/doc/api/labels.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/labels.md')
-rw-r--r--doc/api/labels.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/api/labels.md b/doc/api/labels.md
index 4ee7484d301..54af6c093b9 100644
--- a/doc/api/labels.md
+++ b/doc/api/labels.md
@@ -7,7 +7,7 @@ The `description_html` - was added to response JSON in [GitLab 12.7](https://git
Get all labels for a given project.
-```
+```plaintext
GET /projects/:id/labels
```
@@ -102,7 +102,7 @@ Example response:
Get a single label for a given project.
-```
+```plaintext
GET /projects/:id/labels/:label_id
```
@@ -139,7 +139,7 @@ Example response:
Creates a new label for the given repository with the given name and color.
-```
+```plaintext
POST /projects/:id/labels
```
@@ -178,7 +178,7 @@ Example response:
Deletes a label with a given name.
-```
+```plaintext
DELETE /projects/:id/labels/:label_id
```
@@ -198,7 +198,7 @@ NOTE: **Note:** An older endpoint `DELETE /projects/:id/labels` with `name` in t
Updates an existing label with new name or new color. At least one parameter
is required, to update the label.
-```
+```plaintext
PUT /projects/:id/labels/:label_id
```
@@ -242,7 +242,7 @@ NOTE: **Note:** An older endpoint `PUT /projects/:id/labels` with `name` or `lab
Promotes a project label to a group label.
-```
+```plaintext
PUT /projects/:id/labels/:label_id/promote
```
@@ -279,7 +279,7 @@ Subscribes the authenticated user to a label to receive notifications.
If the user is already subscribed to the label, the status code `304`
is returned.
-```
+```plaintext
POST /projects/:id/labels/:label_id/subscribe
```
@@ -317,7 +317,7 @@ Unsubscribes the authenticated user from a label to not receive notifications
from it. If the user is not subscribed to the label, the
status code `304` is returned.
-```
+```plaintext
POST /projects/:id/labels/:label_id/unsubscribe
```