Documentation (2024.2 Enterprise)

# Tag repository

A Tag represents a tag in a version control Repository.

- Attributes
- Operations
  - GET /projects/:project_id/repositories/:repository_id/tags

Forward slash characters in `:repository_id` must be encoded with `%2F`

## Attributes

### id

The name of the tag, for example `release-1.0`.

- Type: `string`

### commit

The latest commit in the tag.

- Type: `string`

## Operations

### GET /projects/:project_id/repositories/:repository_id/tags

Returns the tags in a repository, with optional limit and offset, as a metadata-results object.

#### Request Example

    curl -X GET \
      -H "Accept: application/vnd.hth.v1" \
      -H "Authorization: hth.company_key='$COMPANY_KEY',account_key='$ACCOUNT_KEY'" \
      https://helixteamhub.cloud/api/projects/luotsi/repositories/chef/tags

#### Response Example

    {
      "metadata": {
        "more_results": false,
        "next_offset": 3,
        "count": 3
      },
      "results": [
        {
          "api_status": 200,
          "api_timestamp": "2013-01-24T15:26:46Z",
          "id": "release-1.0",
          "commit": "e88aed270f0b88769b4e94af50982ac04235e11a"
        },
        {
          "api_status": 200,
          "api_timestamp": "2013-01-24T15:26:46Z",
          "id": "release-2.0",
          "commit": "ba50a8a9c645403d5387972da964be81f5ff02d2"
        },
        {
          "api_status": 200,
          "api_timestamp": "2013-01-24T15:26:46Z",
          "id": "release-2.1",
          "commit": "0bcefe2bb2bc356928e92aba5df99176383845b5"
        }
      ]
    }

Your search for returned results

Your search for returned results