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

# Rename an SSO group

> Rename an SSO group, keeping the roles it grants.

Merge-patch: only the fields you send change; omitted fields are left as-is.
The name is the group's id, so a rename moves the group to a new URL — the
response carries the new id, and requests to the old one return 404.



## OpenAPI

````yaml https://api.select.dev/v2/openapi.json patch /sso-groups/{sso_group_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:
  /sso-groups/{sso_group_id}:
    patch:
      tags:
        - sso-groups
      summary: Rename an SSO group
      description: >-
        Rename an SSO group, keeping the roles it grants.


        Merge-patch: only the fields you send change; omitted fields are left
        as-is.

        The name is the group's id, so a rename moves the group to a new URL —
        the

        response carries the new id, and requests to the old one return 404.
      operationId: update_sso_group_route_sso_groups__sso_group_id__patch
      parameters:
        - name: sso_group_id
          in: path
          required: true
          schema:
            type: string
            title: Sso Group Id
        - name: If-Match
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              The group's current ETag, required to guard against a concurrent
              update.
            title: If-Match
          description: >-
            The group's current ETag, required to guard against a concurrent
            update.
        - 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/SsoGroupUpdateV2'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SsoGroupV2'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    SsoGroupUpdateV2:
      properties:
        name:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          title: Name
          description: >-
            New name for the group. Because the name is the group's id, renaming
            moves it to a new URL. Omit to leave unchanged.
      additionalProperties: false
      type: object
      title: SsoGroupUpdateV2
    SsoGroupV2:
      properties:
        id:
          type: string
          title: Id
          description: The unique identifier of the group, which is its name.
          readOnly: true
          x-terraform-computed: true
        name:
          type: string
          title: Name
          description: The group name as it appears in your identity provider.
        create_time:
          type: string
          title: Create Time
          description: >-
            When the group's earliest role was granted — RFC 3339 UTC, e.g.
            2026-06-05T10:30:00Z.
          readOnly: true
          x-terraform-computed: true
        update_time:
          type: string
          title: Update Time
          description: When any of the group's roles last changed — RFC 3339 UTC.
          readOnly: true
          x-terraform-computed: true
        etag:
          type: string
          title: Etag
          description: Opaque strong ETag for optimistic concurrency.
          readOnly: true
          x-terraform-computed: true
      type: object
      required:
        - id
        - name
        - create_time
        - update_time
        - etag
      title: SsoGroup
      description: >-
        A group from your identity provider, and a carrier for the roles its

        members receive when they log in.


        A group is identified by its name: ``id`` and ``name`` always hold the
        same

        value. Renaming one therefore changes the other, and the group's URL
        with it.
    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

````