summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-09-07 12:57:31 +0000
committerRémy Coutable <remy@rymai.me>2016-09-07 12:57:31 +0000
commit39d1e4acd282bf419c130e4567e552c275f28bdd (patch)
tree7ca4ca5e00ac41b9859cc30b2b0e691602ce1c43 /doc
parent5e66917014090bd002781e7dae2d93cb5937e453 (diff)
parentaaaa781a2e042b15d0fef3f572184a420390fa3a (diff)
downloadgitlab-ce-39d1e4acd282bf419c130e4567e552c275f28bdd.tar.gz
Merge branch 'master' into 'master'
Issue #21440: Small fix to curl example for adding member to project ## What does this MR do? Two lines changed in docs to move the user_id field out of the url and onto the query string ## Why was this MR needed? Issue #21440 reported under Issues. The documentation example for adding members to a project had a slight problem. ## What are the relevant issue numbers? Closes #21440. See merge request !6236
Diffstat (limited to 'doc')
-rw-r--r--doc/api/members.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/members.md b/doc/api/members.md
index fd6d728dad2..6535e9a7801 100644
--- a/doc/api/members.md
+++ b/doc/api/members.md
@@ -110,8 +110,8 @@ POST /projects/:id/members
| `expires_at` | string | no | A date string in the format YEAR-MONTH-DAY |
```bash
-curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/groups/:id/members/:user_id?access_level=30
-curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/:id/members/:user_id?access_level=30
+curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --data "user_id=1&access_level=30" https://gitlab.example.com/api/v3/groups/:id/members
+curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --data "user_id=1&access_level=30" https://gitlab.example.com/api/v3/projects/:id/members
```
Example response: