> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vers.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a repository tag.

> Authorization: the requesting API key must belong to the org that owns the repository.
If `commit_id` is being updated, the caller's org must also own that commit.

Possible status codes:
- **204** — Tag updated.
- **400** — No updates provided.
- **401** — Missing or invalid `Authorization` header.
- **403** — Caller's org does not own the referenced commit.
- **404** — Repository, tag, or commit not found.
- **500** — Database error.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v2/repositories/{repo_name}/tags/{tag_name}
openapi: 3.1.0
info:
  title: Vers API
  description: >-
    REST API for creating, checkpointing, branching, and managing Vers computers
    and projects.
  version: 2.0.0
servers:
  - url: https://api.vers.sh
    description: Vers API
security:
  - bearerAuth: []
tags:
  - name: Computers
    description: Create, inspect, execute commands in, sleep, wake, and delete computers.
  - name: Branches
    description: Branch one or more computers from a live computer, checkpoint, or tag.
  - name: Checkpoints
    description: Capture, inspect, tag, and delete whole-computer checkpoints.
  - name: Projects
    description: >-
      Organize computers into projects with private service networks and grouped
      restores.
  - name: Operations
    description: Inspect and stream status events for asynchronous durable operations.
  - name: Images
    description: >-
      Import and manage custom OCI images, system images, and registry
      artifacts.
  - name: Repositories
    description: Manage checkpoint repositories, tags, and public catalog entries.
  - name: Domains
    description: Register and manage custom domains.
  - name: Environment Variables
    description: Manage account-level environment variables applied to new computers.
  - name: Account & System
    description: Inspect API key identity, usage, and control-plane health.
paths:
  /api/v2/repositories/{repo_name}/tags/{tag_name}:
    patch:
      tags:
        - Repositories
      summary: Update a repository tag.
      description: >-
        Authorization: the requesting API key must belong to the org that owns
        the repository.

        If `commit_id` is being updated, the caller's org must also own that
        commit.


        Possible status codes:

        - **204** — Tag updated.

        - **400** — No updates provided.

        - **401** — Missing or invalid `Authorization` header.

        - **403** — Caller's org does not own the referenced commit.

        - **404** — Repository, tag, or commit not found.

        - **500** — Database error.
      operationId: update_repo_tag
      parameters:
        - name: repo_name
          in: path
          description: Repository name
          required: true
          schema:
            type: string
        - name: tag_name
          in: path
          description: Tag name
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRepoTagRequest'
        required: true
      responses:
        '204':
          description: Tag updated
        '400':
          description: No updates provided
        '401':
          description: Missing or invalid API key
        '403':
          description: Caller's org does not own the referenced commit
        '404':
          description: Repository, tag, or commit not found
components:
  schemas:
    UpdateRepoTagRequest:
      type: object
      description: Request body for PATCH /api/v2/repositories/{repo_name}/tags/{tag_name}
      properties:
        commit_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Optional new commit ID to move the tag to
        description:
          type:
            - string
            - 'null'
          description: Optional new description for the tag. Send `null` to clear.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Vers API key (`VERS_API_KEY`) sent as `Authorization: Bearer <key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.