summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-07-03 16:17:02 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-07-03 16:17:02 +0200
commit26172aeeae069731daa3a4556ec1a46319f023a0 (patch)
tree7a0c02fc1bc7f0071bb3cf07c8177d01661efa55 /doc
parent6646a04d4cc6a4e421af6c56286b4aa4b8991d66 (diff)
parent50a04bdc28f8037131e7571370e87cf758181663 (diff)
downloadgitlab-ce-26172aeeae069731daa3a4556ec1a46319f023a0.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'doc')
-rw-r--r--doc/api/users.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/api/users.md b/doc/api/users.md
index 8b04282f160..5dca77b5c7b 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -396,3 +396,31 @@ Parameters:
- `id` (required) - SSH key ID
Will return `200 OK` on success, or `404 Not found` if either user or key cannot be found.
+
+## Block user
+
+Blocks the specified user. Available only for admin.
+
+```
+PUT /users/:uid/block
+```
+
+Parameters:
+
+- `uid` (required) - id of specified user
+
+Will return `200 OK` on success, or `404 User Not Found` is user cannot be found.
+
+## Unblock user
+
+Unblocks the specified user. Available only for admin.
+
+```
+PUT /users/:uid/unblock
+```
+
+Parameters:
+
+- `uid` (required) - id of specified user
+
+Will return `200 OK` on success, or `404 User Not Found` is user cannot be found.