Update a release asset

PATCH {{baseUrl}}/repos/:owner/:repo/releases/assets/:asset_id

Users with push access to the repository can edit a release asset.

Request Body

{"name"=>"<string>", "label"=>"<string>", "state"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/releases/assets/1&quot;,&quot;browser_download_url&quot;:&quot;https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDEyOlJlbGVhc2VBc3NldDE=&quot;,&quot;name&quot;:&quot;example.zip&quot;,&quot;label&quot;:&quot;short description&quot;,&quot;state&quot;:&quot;uploaded&quot;,&quot;content_type&quot;:&quot;application/zip&quot;,&quot;size&quot;:1024,&quot;download_count&quot;:42,&quot;created_at&quot;:&quot;2013-02-27T19:35:32Z&quot;,&quot;updated_at&quot;:&quot;2013-02-27T19:35:32Z&quot;,&quot;uploader&quot;:{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false}}