summaryrefslogtreecommitdiff
path: root/doc/api/todos.md
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-03-01 20:31:23 +0000
committerDouwe Maan <douwe@gitlab.com>2017-03-01 20:31:23 +0000
commitb6a945b39354ec2b2c09fc5f6904dfbf8990df26 (patch)
treee9b90b651a331b7c1117642ebd2f83a2c37ea26d /doc/api/todos.md
parent7e2ad5d47a1d95281e2a217538dae67107a584c2 (diff)
parent1ead6a9793f790b4111180781234cc6a43590cc1 (diff)
downloadgitlab-ce-b6a945b39354ec2b2c09fc5f6904dfbf8990df26.tar.gz
Merge branch 'api-v4-doc' into 'master'
Use v4 endpoint in API docs See merge request !9631
Diffstat (limited to 'doc/api/todos.md')
-rw-r--r--doc/api/todos.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/todos.md b/doc/api/todos.md
index 469f294bdf3..77667a57195 100644
--- a/doc/api/todos.md
+++ b/doc/api/todos.md
@@ -22,7 +22,7 @@ Parameters:
| `type` | string | no | The type of a todo. Can be either `Issue` or `MergeRequest` |
```bash
-curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos
+curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/todos
```
Example Response:
@@ -194,7 +194,7 @@ Parameters:
| `id` | integer | yes | The ID of a todo |
```bash
-curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos/130/mark_as_done
+curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/todos/130/mark_as_done
```
Example Response:
@@ -284,7 +284,7 @@ POST /todos/mark_as_done
```
```bash
-curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos/donmark_as_donee
+curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/todos/donmark_as_donee
```