> ## 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 usage group set



## OpenAPI

````yaml https://api.select.dev/v2/openapi.json post /usage-group-sets
openapi: 3.1.0
info:
  title: SELECT API (v2)
  version: 0.1.0
servers:
  - url: https://api.select.dev/v2
    description: SELECT API v2
security: []
paths:
  /usage-group-sets:
    post:
      tags:
        - usage-group-sets
      summary: Create a usage group set
      operationId: create_usage_group_set_route_usage_group_sets_post
      parameters:
        - name: x-tenant-id
          in: header
          required: true
          schema:
            type: string
            description: The organization ID the request is scoped to.
            title: X-Tenant-Id
          description: The organization ID the request is scoped to.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UsageGroupSetCreateV2'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageGroupSetV2'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    UsageGroupSetCreateV2:
      properties:
        name:
          type: string
          maxLength: 199
          title: Name
          description: Name of the usage group set. Must be less than 200 characters.
        team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Id
        public:
          type: boolean
          title: Public
          description: Whether the set is visible to all org members for filtering.
          default: false
        order:
          type: integer
          minimum: 0
          title: Order
          description: Display order; lower values appear first.
      type: object
      required:
        - name
        - order
      title: UsageGroupSetCreateV2
    UsageGroupSetV2:
      properties:
        name:
          type: string
          maxLength: 199
          title: Name
          description: Name of the usage group set. Must be less than 200 characters.
        team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Id
        public:
          type: boolean
          title: Public
          description: Whether the set is visible to all org members for filtering.
          default: false
        order:
          type: integer
          minimum: 0
          title: Order
          description: Display order; lower values appear first.
        id:
          type: string
          title: Id
          description: The unique identifier of the usage group set.
        etag:
          type: string
          title: Etag
          description: Opaque strong ETag for optimistic concurrency.
        version:
          type: integer
          title: Version
          description: >-
            Number of committed versions (snapshots). Increment it by one in a
            PATCH to snapshot the current groups as a new version; ordinary
            group edits mutate the current version in place and leave it
            unchanged.
      type: object
      required:
        - name
        - order
        - id
        - etag
        - version
      title: UsageGroupSetV2
    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
      description: Organization API key (sl_…).
      scheme: bearer

````