cURL
curl --request POST \ --url https://api.example.com/api/v1/repositories/{repo_name}/tags \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "commit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "tag_name": "<string>", "description": "<string>" } '
{ "commit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "reference": "<string>", "tag_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Repository name
Request body for creating a tag within a repository: POST /api/v1/repositories/{repo_name}/tags
The commit ID this tag should point to
The tag name (e.g. "latest", "v1.0")
Optional description of what this tag represents
Tag created
Response body for POST /api/v1/repositories/{repo_name}/tags
The commit ID this tag points to
Full reference in image_name:tag format
The ID of the newly created tag