Github API - Test Config

POST /repos/{owner}/{repo}/releases/{release_id}/assets
repos

This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url returned in
the response of the Create a release endpoint to upload a release asset.

You need to use an HTTP client which supports SNI to make calls to this endpoint.

Most libraries will set the required Content-Length header automatically. Use the required Content-Type header to provide the media type of the asset. For a list of media types, see Media Types. For example:

application/zip

GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,
you'll still need to pass your authentication to be able to upload an asset.

When an upstream failure occurs, you will receive a 502 Bad Gateway status. This may leave an empty asset with a state of starter. It can be safely deleted.

Notes:

  • GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "List assets for a release"
    endpoint lists the renamed filenames. For more information and help, contact GitHub Support.
  • To find the release_id query the GET /repos/{owner}/{repo}/releases/latest endpoint.
  • If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.
    Upload a release asset

Arguments
key owner

owner [scalar]

The account owner of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key repo

repo [scalar]

The name of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key release-id

release-id [scalar]

The unique identifier of the release.

API:
Github Open API
(version: 1.1.4)

name string

string [scalar]

The OpenAPI string type

API:
Github Open API
(version: 1.1.4)

label string

string [scalar]

The OpenAPI string type

API:
Github Open API
(version: 1.1.4)

Returns
201 application/json release-asset

release-asset [object]

Data related to a release.

Attributes
browser_download_url string

content_type string

created_at string

download_count integer

id integer

label string

name string

The file name of the asset.

node_id string

size integer

state string

State of the release asset.

updated_at string

url string

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)