Commit 7289e72c authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'patch-29' into 'master'

docs: add curl example for tag create request

See merge request gitlab-org/gitlab!16952
parents 14ca5a59 fd7753a6
...@@ -116,6 +116,12 @@ Parameters: ...@@ -116,6 +116,12 @@ Parameters:
- `message` (optional) - Creates annotated tag. - `message` (optional) - Creates annotated tag.
- `release_description` (optional) - Add release notes to the Git tag and store it in the GitLab database. - `release_description` (optional) - Add release notes to the Git tag and store it in the GitLab database.
```bash
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/tags?tag_name=test&ref=master"
```
Example response:
```json ```json
{ {
"commit": { "commit": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment