v68

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.3 MB
repos

Update a release asset

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

patch/repos/{owner}/{repo}/releases/assets/{asset_id}

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

asset_idinteger required

The unique identifier of the asset.

Request body

namestring

The file name of the asset.

labelstring

An alternate short description of the asset. Used in place of the filename.

statestring

Example request

{
  "state": "\"uploaded\""
}

Response

Response

urlstring uri required
browser_download_urlstring uri required
idinteger required
node_idstring required
namestring required

The file name of the asset.

labelstring nullable required
state'uploaded' | 'open' required

State of the release asset.

content_typestring required
sizeinteger required
digeststring nullable required
download_countinteger required
created_atstring date-time required
updated_atstring date-time required

Example response

{
  "name": "Team Environment",
  "uploader": {
    "login": "octocat",
    "id": 1,
    "node_id": "MDQ6VXNlcjE=",
    "avatar_url": "https://github.com/images/error/octocat_happy.gif",
    "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
    "url": "https://api.github.com/users/octocat",
    "html_url": "https://github.com/octocat",
    "followers_url": "https://api.github.com/users/octocat/followers",
    "following_url": "https://api.github.com/users/octocat/following{/other_user}",
    "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
    "organizations_url": "https://api.github.com/users/octocat/orgs",
    "repos_url": "https://api.github.com/users/octocat/repos",
    "events_url": "https://api.github.com/users/octocat/events{/privacy}",
    "received_events_url": "https://api.github.com/users/octocat/received_events",
    "type": "User",
    "starred_at": "\"2020-07-09T00:17:55Z\"",
    "user_view_type": "public"
  }
}