Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-09 18:08:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-09 18:08:59 +0300
commit6f2b1c32f3ccf422575f591b42372534502dcd72 (patch)
tree2ed532687d73e290f07c760825c02a2ecbaa5416 /doc/api/members.md
parentb90d8b54a4d623e52cf1d4318023e3b18d13dd5b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/members.md')
-rw-r--r--doc/api/members.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/api/members.md b/doc/api/members.md
index 0948c82b05f..286be10dd6e 100644
--- a/doc/api/members.md
+++ b/doc/api/members.md
@@ -310,6 +310,27 @@ Example response:
]
```
+## Remove a billable member from a group
+
+Removes a billable member from a group and its subgroups and projects.
+
+The user does not need to be a group member to qualify for removal.
+For example, if the user was added directly to a project within the group, you can
+still use this API to remove them.
+
+```plaintext
+DELETE /groups/:id/billable_members/:user_id
+```
+
+| Attribute | Type | Required | Description |
+| --------- | ---- | -------- | ----------- |
+| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
+| `user_id` | integer | yes | The user ID of the member |
+
+```shell
+curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/:id/billable_members/:user_id"
+```
+
## Add a member to a group or project
Adds a member to a group or project.