diff options
author | Angus MacArthur <amacarthur@blackberry.com> | 2013-03-05 23:48:40 -0500 |
---|---|---|
committer | Angus MacArthur <amacarthur@blackberry.com> | 2013-03-05 23:48:40 -0500 |
commit | 47abdc10ca7daceac8206a65166b42409a76b459 (patch) | |
tree | 528ae1f3e7f4378d8df56de909cc6a2902e55986 /doc/api/users.md | |
parent | 61ffcab60fef2efcd54b8496aa09de79ee999a2c (diff) | |
download | gitlab-ce-47abdc10ca7daceac8206a65166b42409a76b459.tar.gz |
Updated documentation for added Admin APIs
Diffstat (limited to 'doc/api/users.md')
-rw-r--r-- | doc/api/users.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/api/users.md b/doc/api/users.md index b94d7c0f789..b75e84c6b96 100644 --- a/doc/api/users.md +++ b/doc/api/users.md @@ -220,6 +220,23 @@ Parameters: Will return created key with status `201 Created` on success, or `404 Not found` on fail. +## Add SSH key for user + +Create new key owned by specified user. Available only for admin + +``` +POST /users/:id/keys +``` + +Parameters: + ++ `id` (required) - id of specified user ++ `title` (required) - new SSH Key's title ++ `key` (required) - new SSH key + +Will return created key with status `201 Created` on success, or `404 Not +found` on fail. + ## Delete SSH key Delete key owned by currently authenticated user |