Create a tag
curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/tags \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "v1.0.0",
"target": "<string>"
}
'{
"name": "<string>",
"commit": {
"id": "<string>",
"message": "<string>",
"url": "<string>",
"author": {
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>"
},
"committer": {
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z"
}
}Repositories
Create a tag
Creates a lightweight tag as if it were pushed, which fires the create webhook.
POST
/
repos
/
{owner}
/
{repo}
/
tags
Create a tag
curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/tags \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "v1.0.0",
"target": "<string>"
}
'{
"name": "<string>",
"commit": {
"id": "<string>",
"message": "<string>",
"url": "<string>",
"author": {
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>"
},
"committer": {
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z"
}
}Authorizations
Body
application/json