Skip to content

Create an issue attachment

POST
/repos/{owner}/{repo}/issues/{index}/assets
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

index
required
integer format: int64

Index of the issue

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

attachment
required
file

Attachment to upload

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"
}

APIError is error format response

Media type application/json

APIError is an api error with a message

object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APIError is error format response

Media type application/json

APIError is an api error with a message

object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

QuotaExceeded

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

APIValidationError is error format response related to input validation

Media type application/json
object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APIRepoArchivedError is an error that is raised when an archived repo should be modified

Media type application/json
object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}