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

> Change tenant role and revoke sessions that carry the old role.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json patch /v1/apps/{app_id}/members/{membership_id}
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/members/{membership_id}:
    patch:
      tags:
        - app-memberships
      summary: Update Member Role
      description: Change tenant role and revoke sessions that carry the old role.
      operationId: app_memberships_update_member_role
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: membership_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Membership Id
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAppMembershipRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppMembershipResponse'
        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:
    UpdateAppMembershipRequest:
      properties:
        role:
          $ref: '#/components/schemas/AppMembershipRole'
      type: object
      required:
        - role
      title: UpdateAppMembershipRequest
      description: Change a tenant-app role without changing control-plane authority.
    AppMembershipResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        app_id:
          type: string
          format: uuid
          title: App Id
        user_id:
          type: string
          format: uuid
          title: User Id
        email:
          type: string
          title: Email
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        role:
          $ref: '#/components/schemas/AppMembershipRole'
        status:
          $ref: '#/components/schemas/AppMembershipStatus'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - app_id
        - user_id
        - email
        - name
        - role
        - status
        - created_at
        - updated_at
      title: AppMembershipResponse
      description: Operator-visible global user membership.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    AppMembershipRole:
      type: string
      enum:
        - member
        - admin
      title: AppMembershipRole
      description: Authorization role inside a tenant app, never the floo control plane.
    AppMembershipStatus:
      type: string
      enum:
        - active
        - revoked
      title: AppMembershipStatus
      description: Monotonic authorization decision for a global user and app.
    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.