Create a deploy key

POST {{baseUrl}}/repos/:owner/:repo/keys

You can create a read-only deploy key.

Request Body

{"key"=>"<string>", "title"=>"<string>", "read_only"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;id&quot;:1,&quot;key&quot;:&quot;ssh-rsa AAA...&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/keys/1&quot;,&quot;title&quot;:&quot;octocat@octomac&quot;,&quot;verified&quot;:true,&quot;created_at&quot;:&quot;2014-12-10T15:53:42Z&quot;,&quot;read_only&quot;:true}