跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support
This is the documentation of 22.6.1, which is no longer the latest release. See the latest release.

Returns all labels in a template

GET
/label/templates/{name}
curl --request GET \
--url https://gitea.example.com/api/v1/label/templates/example \
--header 'Authorization: Basic <credentials>'
name
required
string

Name of the template

LabelTemplateInfo

Media typeapplication/json
Array<object>

LabelTemplate info of a Label template

object
color
string
description
string
exclusive
boolean
name
string
Example
[
{
"color": "00aabb",
"exclusive": false
}
]

APINotFound is a not found empty response

Media typeapplication/json