.. include:: api/devs.ouya.tv/api-v1-discover-home.rst
.. include:: api/devs.ouya.tv/api-v1-events.rst
.. include:: api/devs.ouya.tv/api-v1-gamers.rst
+.. include:: api/devs.ouya.tv/api-v1-gamers-key.put.rst
.. include:: api/devs.ouya.tv/api-v1-gamers-me.rst
.. include:: api/devs.ouya.tv/api-v1-gamers-me-agreements.rst
.. include:: api/devs.ouya.tv/api-v1-gamers-me-agreements.put.rst
--- /dev/null
+==============================================
+``PUT https://devs.ouya.tv/api/v1/gamers/key``
+==============================================
+
+Store an encryption key on the server
+
+FIXME: When is that key needed?
+
+HTTP request
+============
+Protocol
+ ``https``
+Method
+ ``PUT``
+Host
+ ``devs.ouya.tv``
+Path
+ ``/api/v1/gamers/key``
+Headers
+ Standard headers
+
+ ``Content-Type``
+ ``application/x-www-form-urlencoded``
+GET parameters
+ ``auth_token``
+ Same data as in standard header ``X-OUYA-AuthToken``
+POST parameters
+ ``auth_token``
+ Same data as in standard header ``X-OUYA-AuthToken``
+ ``gamer[key]``
+ string
+
+ FIXME encryption key
+ ``gamer[password]``
+ string
+
+ User account password
+ ``gamer[username]``
+ string
+
+ User account name
+
+Example key::
+
+ -----BEGIN PUBLIC KEY-----
+ MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCvf3MvvZui5shNGbt2O0zveXrtfHZNivowNKiO
+ UagJARKCJmjOJVtZ1srCe95Eul/xBDPDEaH8vJetn5Pl99QwhdYL1ps9mUhmocx90LavQsipr2Dw
+ B7XshwN/EpW0uR/R84a3yXozpk7dgXi4+y//A+XT+MqgxsY6cdSGrBMsCQIDAQAB
+ -----END PUBLIC KEY-----
+
+
+HTTP response
+=============
+Status code
+ ``201 Created``
+Content type
+ ``application/json; charset=utf-8``
+Body
+ ``{}``