diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-04-08 12:41:37 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-04-12 14:30:42 +0200 |
commit | 6dbcb880cc72f7511358612bbc76e2ab9ded14c5 (patch) | |
tree | 0f3510583a254f6e5a0d7027f670e20ef6c6b060 /doc/api | |
parent | 734df1bb504aedec6a5668567de808b549a84749 (diff) | |
download | gitlab-ce-6dbcb880cc72f7511358612bbc76e2ab9ded14c5.tar.gz |
Allow a project member to leave the projected through the APIremove-myself-from-project-api-7687
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/projects.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index 3a909a2bc87..ab716c229dc 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -780,8 +780,10 @@ Parameters: - `id` (required) - The ID or NAMESPACE/PROJECT_NAME of a project - `user_id` (required) - The ID of a team member -This method is idempotent and can be called multiple times with the same parameters. -Revoking team membership for a user who is not currently a team member is considered success. +This method removes the project member if the user has the proper access rights to do so. +It returns a status code 403 if the member does not have the proper rights to perform this action. +In all other cases this method is idempotent and revoking team membership for a user who is not +currently a team member is considered success. Please note that the returned JSON currently differs slightly. Thus you should not rely on the returned JSON structure. |