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

# Update Member Role



## OpenAPI

````yaml PATCH /v1/team/members/{userId}/role
openapi: 3.0.0
info:
  title: Wardin API
  description: AI governance & observability platform — external REST API
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/team/members/{userId}/role:
    patch:
      tags:
        - team
      summary: Update a team member's role
      operationId: TeamController_updateRole
      parameters:
        - name: userId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRoleDto'
      responses:
        '200':
          description: Role updated
      security:
        - bearer: []
components:
  schemas:
    UpdateRoleDto:
      type: object
      properties:
        role:
          type: string
          enum:
            - developer
            - manager
            - admin
      required:
        - role
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````