> ## 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 team member

> Update a team member's role.

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



## OpenAPI

````yaml https://api.select.dev/v2/openapi.json patch /teams/{team_id}/members/{member_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:
  /teams/{team_id}/members/{member_id}:
    patch:
      tags:
        - teams
      summary: Update a team member
      description: >-
        Update a team member's role.


        Merge-patch: only the fields you send change; omitted fields are left
        as-is.
      operationId: update_team_member_route_teams__team_id__members__member_id__patch
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            title: Team Id
        - name: member_id
          in: path
          required: true
          schema:
            type: string
            title: Member Id
        - name: If-Match
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              The member's current ETag, required to guard against a concurrent
              update.
            title: If-Match
          description: >-
            The member'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/TeamMemberUpdateV2'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMemberV2'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TeamMemberUpdateV2:
      properties:
        role:
          anyOf:
            - $ref: '#/components/schemas/TeamRoleEnum'
            - type: 'null'
          description: New role for the member. Omit to leave unchanged.
      additionalProperties: false
      type: object
      title: TeamMemberUpdateV2
    TeamMemberV2:
      properties:
        id:
          type: string
          title: Id
          description: The unique identifier of this membership.
          readOnly: true
          x-terraform-computed: true
        type:
          $ref: '#/components/schemas/TeamMemberType'
          description: Whether the member is an individual user or an SSO group.
        identifier:
          type: string
          title: Identifier
          description: Email address for a user, or group name for an SSO group.
          x-doit-confidentiality: customer-data
          x-doit-pii: true
        role:
          $ref: '#/components/schemas/TeamRoleEnum'
          description: The member's role within the team.
        create_time:
          type: string
          title: Create Time
          description: When the member was added to the team — 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
        - type
        - identifier
        - role
        - create_time
        - etag
      title: TeamMember
      description: A user or SSO group granted membership on a team.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TeamRoleEnum:
      type: string
      enum:
        - editor
        - viewer
      title: TeamRoleEnum
      description: >-
        Defines the permission level of a user within a team:

        - EDITOR: Can manage team resources, create and modify shared items, and
        change settings

        - VIEWER: Can view team resources and have limited interaction
        capabilities
    TeamMemberType:
      type: string
      enum:
        - user
        - sso_group
      title: TeamMemberType
      description: Whether a team member is an individual user or an SSO group.
    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

````