> ## Documentation Index
> Fetch the complete documentation index at: https://docs.basic.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a team member

> Updates a team member's roles or role_name



## OpenAPI

````yaml patch /team/{team_id}/member/{member_id}
openapi: 3.0.0
info:
  title: Basic Admin API
  description: API for Basic Admin
  version: 0.1.0
servers:
  - url: https://api.basic.tech
    description: Production server
  - url: https://beta.api.basic.tech
    description: Staging server
  - url: http://localhost:3003
    description: Development server
security: []
tags:
  - name: auth
    description: Authentication and authorization end-points
  - name: projects
    description: Project management end-points
  - name: project-keys
    description: Project API key management end-points
  - name: project-users
    description: Project user management end-points
  - name: project-schema
    description: Project schema management end-points
  - name: project-upload
    description: Project image upload end-points
  - name: teams
    description: Project user management end-points
  - name: utils
    description: Utility end-points - very useful, trust me
externalDocs:
  url: https://docs.basic.tech
  description: Find more info here
paths:
  /team/{team_id}/member/{member_id}:
    patch:
      tags:
        - teams
      summary: Update a team member
      description: Updates a team member's roles or role_name
      parameters:
        - schema:
            type: string
          in: path
          name: team_id
          required: true
          description: The ID of the team
        - schema:
            type: string
          in: path
          name: member_id
          required: true
          description: The ID of the member to update
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                roles:
                  type: string
                  description: The new roles for the team member
                role_name:
                  type: string
                  description: The new display name for the role
      responses:
        '200':
          description: Member updated successfully
          content:
            application/json:
              schema:
                description: Member updated successfully
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      team_id:
                        type: string
                      account_id:
                        type: string
                      roles:
                        type: string
                      role_name:
                        type: string
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                description: Bad Request
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                description: Forbidden
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '404':
          description: Team or member not found
          content:
            application/json:
              schema:
                description: Team or member not found
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                description: Internal server error
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Authorization Token header using the Bearer scheme
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API Key Authorization header using the Bearer scheme

````