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

# Create Tag

> Add a value to an existing tag group.



## OpenAPI

````yaml post /api/v2/tag/create
openapi: 3.0.0
info:
  version: 5.4.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/tag/create:
    post:
      tags:
        - Tag
      summary: Create Tag
      description: Add a value to an existing tag group.
      operationId: createTag
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                tagGroupOId:
                  type: string
                  minLength: 1
                  description: Tag group OId
                  example: tg_1234
                name:
                  type: string
                  minLength: 1
                  description: The new value; unique within the group
                  example: Enterprise
                position:
                  type: integer
                  nullable: true
                  description: Display order within the group (0 first)
              required:
                - tagGroupOId
                - name
      responses:
        '200':
          description: Create Tag response
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  data:
                    $ref: '#/components/schemas/Tag'
                required:
                  - _metadata
                  - data
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
        '404':
          description: Tag group, tag or entity not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
      deprecated: false
components:
  schemas:
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          example: 0
          description: API usage
        requestId:
          type: string
          example: requestId
          description: Request ID
        message:
          type: string
          example: message
          description: Message
        timestamp:
          type: string
          example: '2021-01-01T00:00:00.000Z'
          description: Timestamp
      required:
        - requestId
        - timestamp
    Tag:
      type: object
      properties:
        oId:
          type: string
          description: Tag OId
          example: tag_1234
        name:
          type: string
          description: Tag value name
        position:
          type: integer
          nullable: true
          description: Display order within the group (0 first)
        createdAt:
          type: string
          nullable: true
          format: date-time
        updatedAt:
          type: string
          nullable: true
          format: date-time
      required:
        - oId
        - name
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````