Skip to content

Retrieve a release link

GET
/api/v4/projects/{id}/releases/{tag_name}/assets/links/{link_id}

Retrieves a specified asset as a link from a release.

id
required
One of:
string

The ID or URL-encoded path of the project

tag_name
required
string

The tag associated with the release

link_id
required
integer

The ID of the link

OK

Media type application/json
object
id
integer format: int64
name
string
url
string
direct_asset_url
string
link_type
string
Example
{
"id": 1,
"name": "app-v1.0.dmg",
"url": "https://gitlab.example.com/root/app/-/jobs/688/artifacts/raw/bin/app-v1.0.dmg",
"direct_asset_url": "https://gitlab.example.com/root/app/-/releases/v1.0/downloads/app-v1.0.dmg",
"link_type": "other"
}

Bad Request

Unauthorized

Not found