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

# Update a usage group set



## OpenAPI

````yaml https://api.select.dev/v2/openapi.json patch /usage-group-sets/{usage_group_set_id}
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/{usage_group_set_id}:
    patch:
      tags:
        - usage-group-sets
      summary: Update a usage group set
      operationId: update_usage_group_set_route_usage_group_sets__usage_group_set_id__patch
      parameters:
        - name: usage_group_set_id
          in: path
          required: true
          schema:
            type: string
            title: Usage Group Set Id
        - name: If-Match
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: If-Match
        - 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/UsageGroupSetUpdateV2'
      responses:
        '200':
          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:
    UsageGroupSetUpdateV2:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 199
            - type: 'null'
          title: Name
        order:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Order
        team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Id
        public:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Public
        version:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Version
          description: >-
            Set to the current version + 1 to snapshot the current groups as a
            new version. Any other value is rejected; omit it to leave versions
            untouched.
      additionalProperties: false
      type: object
      title: UsageGroupSetUpdateV2
    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

````