Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of 1.26.4, which is no longer the latest release. See the latest release.

Link a package to a repository

POST
/packages/{owner}/{type}/{name}/-/link/{repo_name}
curl --request POST \
--url https://gitea.com/api/v1/packages/example/example/example/-/link/example \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the package

type
required
string

Type of the package

name
required
string

Name of the package

repo_name
required
string

Name of the repository to link.

APIEmpty is an empty response

Media typeapplication/json

APINotFound is a not found empty response

Media typeapplication/json