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

# Update Member Role

> Update a member's role. Admin only.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json patch /v1/orgs/{org_id}/members/{member_user_id}
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/orgs/{org_id}/members/{member_user_id}:
    patch:
      tags:
        - orgs
      summary: Update Member Role
      description: Update a member's role. Admin only.
      operationId: orgs_update_member_role
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Org Id
        - name: member_user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Member User Id
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMemberRoleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemberResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    UpdateMemberRoleRequest:
      properties:
        role:
          $ref: '#/components/schemas/OrgRole'
      type: object
      required:
        - role
      title: UpdateMemberRoleRequest
      description: Request body for updating a member's role.
    MemberResponse:
      properties:
        user_id:
          type: string
          format: uuid
          title: User Id
        email:
          type: string
          title: Email
        role:
          $ref: '#/components/schemas/OrgRole'
        joined_at:
          type: string
          format: date-time
          title: Joined At
      type: object
      required:
        - user_id
        - email
        - role
        - joined_at
      title: MemberResponse
      description: Response for a single org member.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    OrgRole:
      type: string
      enum:
        - admin
        - member
        - viewer
      title: OrgRole
      description: Role of a user within an organization.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.