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

# Add a team member

> Add a user or SSO group to a team.



## OpenAPI

````yaml https://api.select.dev/v2/openapi.json post /teams/{team_id}/members
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:
    post:
      tags:
        - teams
      summary: Add a team member
      description: Add a user or SSO group to a team.
      operationId: add_team_member_route_teams__team_id__members_post
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            title: Team Id
        - 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/TeamMemberCreateV2'
      responses:
        '201':
          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:
    TeamMemberCreateV2:
      properties:
        type:
          $ref: '#/components/schemas/TeamMemberType'
          description: Whether to add 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.
          default: editor
      additionalProperties: false
      type: object
      required:
        - type
        - identifier
      title: TeamMemberCreateV2
    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
    TeamMemberType:
      type: string
      enum:
        - user
        - sso_group
      title: TeamMemberType
      description: Whether a team member is an individual user or an SSO group.
    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
    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

````