Update a reference

PATCH {{baseUrl}}/repos/:owner/:repo/git/refs/:ref

Request Body

{"sha"=>"<string>", "force"=>false}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;ref&quot;:&quot;refs/heads/featureA&quot;,&quot;node_id&quot;:&quot;MDM6UmVmcmVmcy9oZWFkcy9mZWF0dXJlQQ==&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA&quot;,&quot;object&quot;:{&quot;type&quot;:&quot;commit&quot;,&quot;sha&quot;:&quot;aa218f56b14c9653891f9e74264a383fa43fefbd&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd&quot;}}