summaryrefslogtreecommitdiff
path: root/doc/api/members.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-27 09:09:01 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-27 09:09:01 +0000
commitc72e5ebe9938d315ec598197873e71a80168d40a (patch)
tree439bf5c40aaf774e5a301825af517cb52726f450 /doc/api/members.md
parentffc43b862df32a590eae874bcbb11109b46dc8be (diff)
downloadgitlab-ce-c72e5ebe9938d315ec598197873e71a80168d40a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/members.md')
-rw-r--r--doc/api/members.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/api/members.md b/doc/api/members.md
index e32f72e14e7..47f2d694006 100644
--- a/doc/api/members.md
+++ b/doc/api/members.md
@@ -17,7 +17,7 @@ The access levels are defined in the `Gitlab::Access` module. Currently, these l
Gets a list of group or project members viewable by the authenticated user.
Returns only direct members and not inherited members through ancestors groups.
-```
+```plaintext
GET /groups/:id/members
GET /projects/:id/members
```
@@ -72,7 +72,7 @@ Gets a list of group or project members viewable by the authenticated user, incl
When a user is a member of the project/group and of one or more ancestor groups the user is returned only once with the project `access_level` (if exists)
or the `access_level` for the user in the first group which they belong to in the project groups ancestors chain.
-```
+```plaintext
GET /groups/:id/members/all
GET /projects/:id/members/all
```
@@ -136,7 +136,7 @@ Example response:
Gets a member of a group or project. Returns only direct members and not inherited members through ancestor groups.
-```
+```plaintext
GET /groups/:id/members/:user_id
GET /projects/:id/members/:user_id
```
@@ -173,7 +173,7 @@ Example response:
Gets a member of a group or project, including members inherited through ancestor groups. See the corresponding [endpoint to list all inherited members](#list-all-members-of-a-group-or-project-including-inherited-members) for details.
-```
+```plaintext
GET /groups/:id/members/all/:user_id
GET /projects/:id/members/all/:user_id
```
@@ -208,7 +208,7 @@ Example response:
Adds a member to a group or project.
-```
+```plaintext
POST /groups/:id/members
POST /projects/:id/members
```
@@ -245,7 +245,7 @@ Example response:
Updates a member of a group or project.
-```
+```plaintext
PUT /groups/:id/members/:user_id
PUT /projects/:id/members/:user_id
```
@@ -282,7 +282,7 @@ Example response:
Removes a user from a group or project.
-```
+```plaintext
DELETE /groups/:id/members/:user_id
DELETE /projects/:id/members/:user_id
```