Skip to content

Create new tag

POST
/api/v1/git/tags

Creates a new lightweight git tag with the specified name on the provided revision.

Parameters

Query Parameters

name*

Name of the tag to create

Typestring
Required
revision*

Revision to tag, this can be a short hash, full hash or a tag

Typestring
Required

Responses

Tag created successfully

application/json
JSON
{
"commit": {
"author": {
"email": "string",
"name": "string"
},
"body": "string",
"committer": {
"email": "string",
"name": "string"
},
"id": "string",
"summary": "string",
"time": "string"
},
"tag": "string"
}

Samples