| title | User Public Keys | GitHub API |
|---|
- TOC {:toc}
Management of public keys via the API requires that you are authenticated.
GET /user/keys
<%= headers 200 %> <%= json(:public_key) { |h| [h] } %>
GET /user/keys/:id
<%= headers 200 %> <%= json :public_key %>
POST /user/keys
<%= json :title => "octocat@octomac", :key => "ssh-rsa AAA..." %>
<%= headers 201, :Location => "https://api.github.com/user/keys/1" %> <%= json :public_key %>
PATCH /user/keys/:id
<%= json :title => "octocat@octomac", :key => "ssh-rsa AAA..." %>
<%= headers 200 %> <%= json :public_key %>
DELETE /user/keys/:id
<%= headers 204 %>