Create a release
Users with push access to the repository can create a release.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See “Secondary rate limits” and “Dealing with secondary rate limits” for details.
Path Parameters
Body
application/json
Body
The name of the tag.
Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository’s default branch (usually master
).
The name of the release.
Text describing the contents of the tag.
true
to create a draft (unpublished) release, false
to create a published one.
Default:false
true
to identify the release as a prerelease. false
to identify the release as a full release.
Default:false
Response
application/json
Response
Response
Release
A release.
The name of the tag.
Example:v1.0.0
Specifies the commitish value that determines where the Git tag is created from.
Example:master
true to create a draft (unpublished) release, false to create a published one.
Example:false
Whether to identify the release as a prerelease or a full release.
Example:false
Simple User
Show Child Parameters
Data related to a release.
Show Child Parameters
Show Child Parameters
Path Parameters
Body
Get a release asset
To download the asset’s binary content, set the Accept
header of the request to application/octet-stream
. The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a 200
or 302
response.
Path Parameters
asset_id parameter
Response
application/json
Response
To download the asset’s binary content, set the Accept
header of the request to application/octet-stream
. The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a 200
or 302
response.
Release Asset
Data related to a release.
The file name of the asset.
Example:Team Environment
State of the release asset.
Allowed values:uploadedopen
Simple User
Show Child Parameters
Path Parameters
Update a release asset
Users with push access to the repository can edit a release asset.
Path Parameters
asset_id parameter
Body
application/json
Body
The file name of the asset.
An alternate short description of the asset. Used in place of the filename.
Example:"uploaded"
Response
200 application/json
Response
Response
Release Asset
Data related to a release.
The file name of the asset.
Example:Team Environment
State of the release asset.
Allowed values:uploadedopen
Simple User
Show Child Parameters
Path Parameters
Body
Delete a release asset
Path Parameters
asset_id parameter
Response
204
Response
Response
Path Parameters
Get the latest release
View the latest published full release for the repository.
The latest release is the most recent non-prerelease, non-draft release, sorted by the created_at
attribute. The created_at
attribute is the date of the commit used for the release, and not the date when the release was drafted or published.
Path Parameters
Response
200 application/json
Response
Response
Release
A release.
The name of the tag.
Example:v1.0.0
Specifies the commitish value that determines where the Git tag is created from.
Example:master
true to create a draft (unpublished) release, false to create a published one.
Example:false
Whether to identify the release as a prerelease or a full release.
Example:false
Simple User
Show Child Parameters
Data related to a release.