Edit a comment attachment
PATCH
/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repo
repo
required
string
Name of the repo
id
required
integer format: int64
Id of the comment
attachment_id
required
integer format: int64
Id of the attachment to edit
Request Body
Section titled “Request Body”Media typeapplication/json
EditAttachmentOptions options for editing attachments
object
browser_download_url
(Can only be set if existing attachment is of external type)
string
name
string
Examplegenerated
{ "browser_download_url": "example", "name": "example"}Responses
Section titled “Responses”Attachment
Media typeapplication/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
uuid
string
Example
{ "type": "attachment"}APIError is error format response
Media typeapplication/json
APIError is an api error with a message
object
message
string
url
string
Examplegenerated
{ "message": "example", "url": "example"}QuotaExceeded
Media typeapplication/json
Headers
Section titled “Headers”message
string
user_id
integer format: int64
username
string
APIRepoArchivedError is an error that is raised when an archived repo should be modified
Media typeapplication/json
object
message
string
url
string
Examplegenerated
{ "message": "example", "url": "example"}