Skip to content

Edit a release attachment

PATCH
/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

id
required
integer format: int64

Id of the release

attachment_id
required
integer format: int64

Id of the attachment to edit

Media type application/json

EditAttachmentOptions options for editing attachments

object
browser_download_url

(Can only be set if existing attachment is of external type)

string
name
string
Example generated
{
"browser_download_url": "example",
"name": "example"
}

Attachment

Media type application/json

Attachment a generic attachment

object
browser_download_url
string
created_at
string format: date-time
download_count
integer format: int64
id
integer format: int64
name
string
size
integer format: int64
type
string
Allowed values: attachment external
uuid
string
Example
{
"type": "attachment"
}

APINotFound is a not found error response

Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}

QuotaExceeded

Media type application/json
message
string
user_id
integer format: int64
username
string