Create an issue attachment
POST
/repos/{owner}/{repo}/issues/{index}/assets
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
index
required
integer format: int64
Index of the issue
Query Parameters
Section titled “Query Parameters”name
string
Name of the attachment
updated_at
string format: date-time
Time of the attachment’s creation. This is a timestamp in RFC 3339 format
FormData Parameters
Section titled “FormData Parameters”attachment
required
file
Attachment to upload
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"}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
APIValidationError is error format response related to input validation
Media typeapplication/json
object
message
string
url
string
Examplegenerated
{ "message": "example", "url": "example"}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"}