> ## 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.

# Post apiv1repositories tags



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/repositories/{repo_name}/tags
openapi: 3.1.0
info:
  title: Orchestrator Control Plane API
  description: ''
  license:
    name: ''
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/repositories/{repo_name}/tags:
    post:
      tags:
        - repositories
      operationId: create_repo_tag
      parameters:
        - name: repo_name
          in: path
          description: Repository name
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRepoTagRequest'
        required: true
      responses:
        '201':
          description: Tag created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateRepoTagResponse'
        '400':
          description: Invalid tag name
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Repository or commit not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Tag already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearer_auth: []
components:
  schemas:
    CreateRepoTagRequest:
      type: object
      description: >-
        Request body for creating a tag within a repository: POST
        /api/v1/repositories/{repo_name}/tags
      required:
        - tag_name
        - commit_id
      properties:
        commit_id:
          type: string
          format: uuid
          description: The commit ID this tag should point to
        description:
          type:
            - string
            - 'null'
          description: Optional description of what this tag represents
        tag_name:
          type: string
          description: The tag name (e.g. "latest", "v1.0")
    CreateRepoTagResponse:
      type: object
      description: Response body for POST /api/v1/repositories/{repo_name}/tags
      required:
        - tag_id
        - reference
        - commit_id
      properties:
        commit_id:
          type: string
          format: uuid
          description: The commit ID this tag points to
        reference:
          type: string
          description: Full reference in image_name:tag format
        tag_id:
          type: string
          format: uuid
          description: The ID of the newly created tag
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Reason of error
        success:
          type: boolean
          description: 'Is always: false'
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: Token

````