title: Problem adding deploy keys to github via API
body: <p>I am following the guidelines published here: <a href="http://develop.github.com/p/repo.html" rel="nofollow">http://develop.github.com/p/repo.html</a></p>
  
  <p>I am trying to add a public key to my set of deploy keys, using the GitHub API.</p>
  
  <p>Creating the repo works fine:</p>
  
  <pre><code>curl -F "login=username" -F "token=ApiToken" https://github.com/api/v2/json/repos/create -F name=myrepo
  
  {"repository":{"owner":"username","has_downloads":true,"forks":1,"url":"https://github.com/username/myrepo","watchers":1,"has_wiki":true,"fork":false,"size":0,"open_issues":0,"created_at":"2011/09/06 02:42:08 -0700","name":"myrepo","private":false,"has_issues":true}}
  </code></pre>
  
  <p>I can list the keys (emtpy for now):</p>
  
  <pre><code>curl -F "login=username" -F "token=ApiToken" https://github.com/api/v2/json/repos/keys/username/myrepo
  
  {"public_keys":[]}
  </code></pre>
  
  <p>But I can not add keys (stays empty even after addition!):</p>
  
  <pre><code>curl -X POST -F "login=username" -F "token=ApiToken" https://github.com/api/v2/json/repos/key/username/myrepo/add -F "title=TheTitle" -F "key=ssh-rsa xxxxx..."
  
  {"public_keys":[]}
  </code></pre>
  
  <p>Is there any limitation to the GitHub API, regarding key addition?</p>