Create a new repository tag
POST
/v3/projects/{id}/repository/tagsCreate a new repository tag
请求参数
Path 参数
id
string
必需
The ID of a project
Body 参数application/x-www-form-urlencoded
tag_name
string
必需
The name of the tag
ref
string
必需
The commit sha or branch name
message
string
可选
Specifying a message creates an annotated tag
release_description
string
可选
Specifying release notes stored in the GitLab database
示例代码
返回响应
成功(201)
HTTP 状态码: 201
内容格式: JSONapplication/json
Create a new repository tag
数据结构
Create a new repository tag
name
string
可选
message
string
可选
commit
string
可选
release
object (Release)
可选
Update a tag's release note
tag_name
string
可选
description
string
可选
示例
{
"name": "string",
"message": "string",
"commit": "string",
"release": {
"tag_name": "string",
"description": "string"
}
}
最后修改时间: 1 个月前