Create a release attachment
POST
/repos/{owner}/{repo}/releases/{id}/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
id
required
integer format: int64
Id of the release
Query Parameters
Section titled “ Query Parameters ” name
string
Name of the attachment
FormData Parameters
Section titled “ FormData Parameters ” attachment
file
Attachment to upload (this parameter is incompatible with external_url)
external_url
string
Url to external asset (this parameter is incompatible with attachment)
Responses
Section titled “ Responses ”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
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"}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
Headers
Section titled “ Headers ” message
string
user_id
integer format: int64
username
string