Add a release asset
Add a new asset to a release. The authenticated user must have create permissions.
Path Parameters
- repo string required
The name of the repository. The name is not case sensitive.
- tag string required
The tag of the release.
- application/json
Request Body
- name string required
Name of the asset.
- description string
Description of the asset.
- download_url string required
Download location of the asset.
- size number
Default value:
0
Size of the asset in kilobytes.
Responses
- 200
- 409
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- success boolean required
data object required
tag string requiredRelease tag
name string requiredRelease name
description string requiredRelease description
created_at date-time requiredCreation date
updated_at date-time requiredUpdated date
draft boolean requiredtrue for unpublished releases
prerelease boolean requiredtrue for prerelease releases
assets string[] required
{
"success": true,
"data": {
"tag": "v1.0.0",
"name": "v1.0.0",
"description": "An example release.",
"created_at": "2023-02-26T21:24:33.044Z",
"updated_at": "2023-02-26T21:24:33.044Z",
"draft": false,
"prerelease": false,
"assets": [
"build.zip"
]
}
}
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- success boolean required
- error string required
{
"success": false,
"error": "asset already exists"
}
Loading...