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

# Create a new version of a usage group set

> Create a new version of a usage group set with a copy of all current usage groups. This is useful when you want to preserve the current state before making changes.



## OpenAPI

````yaml https://api.select.dev/public_openapi post /api/{organization_id}/usage-group-sets/{usage_group_set_id}/versions
openapi: 3.1.0
info:
  title: SELECT API (v1)
  version: 0.1.0
servers:
  - url: https://api.select.dev/
    description: SELECT API
security: []
paths:
  /api/{organization_id}/usage-group-sets/{usage_group_set_id}/versions:
    post:
      tags:
        - usage-group-sets
        - public-api
      summary: Create a new version of a usage group set
      description: >-
        Create a new version of a usage group set with a copy of all current
        usage groups. This is useful when you want to preserve the current state
        before making changes.
      operationId: >-
        create_usage_group_set_version_route_api__organization_id__usage_group_sets__usage_group_set_id__versions_post
      parameters:
        - name: usage_group_set_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: The ID of the usage group set
            title: Usage Group Set Id
          description: The ID of the usage group set
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            title: Organization Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicUsageGroupSetVersionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
        - HTTPBearer: []
components:
  schemas:
    PublicUsageGroupSetVersionResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: The unique identifier of the newly created version.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: The timestamp when the version was created.
        created_by:
          type: string
          title: Created By
          description: The user/API key that created this version.
        usage_group_set_id:
          type: string
          format: uuid
          title: Usage Group Set Id
          description: The ID of the usage group set this version belongs to.
      type: object
      required:
        - id
        - created_at
        - created_by
        - usage_group_set_id
      title: PublicUsageGroupSetVersionResponse
      description: Response schema for version creation.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````