summaryrefslogtreecommitdiff
path: root/doc/api/labels.md
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-02-22 16:09:37 +0200
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-02-22 16:16:08 +0200
commit5b39b113ae59a15782204f30b0f22957e5893032 (patch)
tree99e548993f0c4ba80e23a599b0896e18198feca8 /doc/api/labels.md
parenta612ac1cb453ec4b7b72fd8e3e26c30a27e62590 (diff)
downloadgitlab-ce-doc_replace_api_endpoint.tar.gz
Replace `gitlab.example.com` with `gitlab.com` in API examplesdoc_replace_api_endpoint
[ci skip]
Diffstat (limited to 'doc/api/labels.md')
-rw-r--r--doc/api/labels.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/labels.md b/doc/api/labels.md
index 6496ffe9fd1..9bf796936a0 100644
--- a/doc/api/labels.md
+++ b/doc/api/labels.md
@@ -13,7 +13,7 @@ GET /projects/:id/labels
| `id` | integer | yes | The ID of the project |
```bash
-curl -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/1/labels
+curl -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.com/api/v3/projects/1/labels
```
Example response:
@@ -73,7 +73,7 @@ POST /projects/:id/labels
| `color` | string | yes | The color of the label in 6-digit hex notation with leading `#` sign |
```bash
-curl --data "name=feature&color=#5843AD" -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/labels"
+curl --data "name=feature&color=#5843AD" -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.com/api/v3/projects/1/labels"
```
Example response:
@@ -103,7 +103,7 @@ DELETE /projects/:id/labels
| `name` | string | yes | The name of the label |
```bash
-curl -X DELETE -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/labels?name=bug"
+curl -X DELETE -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.com/api/v3/projects/1/labels?name=bug"
```
Example response:
@@ -141,7 +141,7 @@ PUT /projects/:id/labels
| `color` | string | yes if `new_name` is not provided | The new color of the label in 6-digit hex notation with leading `#` sign |
```bash
-curl -X PUT --data "name=documentation&new_name=docs&color=#8E44AD" -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/labels"
+curl -X PUT --data "name=documentation&new_name=docs&color=#8E44AD" -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.com/api/v3/projects/1/labels"
```
Example response: