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

# Update Organization Member

> Update the name, surname, authentication tenant and organization member permissions of a member, then return the member. `name`, `surname` and `auth_tenant_id` are overwritten with the values sent (null when omitted), so always send them; `organization_member_permissions` only changes the permissions it lists and the other body fields are ignored. Use the sibling `enable` and `disable` operations to change `is_disabled`. Requires write permission on the member.

&#x20;Required API key permission: **Write Organization**


## OpenAPI

````yaml firework-v2-openapi put /firework/v2/organizations/{organization_id}/members/{user_id}
openapi: 3.0.1
info:
  description: >

    Manage and access Firework resources.


    Requests are authenticated with API tokens, which are obtained using an API
    key:


    1. Generate an API key from the [Profile
    page](https://app.flare.io/#/profile).

    2. Send a `POST` request to `https://api.flare.io/tokens/generate` with the
    `Authorization: <api-key>` header to get an API token. API tokens expire
    after 1 hour.

    3. Call the API endpoints with the `Authorization: Bearer <api-token>`
    header.


    See [Authentication](https://api.docs.flare.io/concepts/authentication) for
    details.
  title: Firework API
  version: v2
servers:
  - url: https://api.flare.io/
security:
  - BearerAuth: []
tags:
  - description: >-
      The authenticated user, its API keys, organizations, tenants, onboarding
      and usage.
    name: Account
  - description: >-
      Events collected by Flare: global search, tenant and identifier feeds,
      event details, actions and saved feed views.
    name: Events
  - description: >-
      Identifiers are the assets a tenant monitors, such as domains, keywords
      and email addresses. Includes recommendations and authorization of
      sensitive identifiers.
    name: Identifiers
  - description: Report groups, reports, their sections, schedules and delivery channels.
    name: Reports
paths:
  /firework/v2/organizations/{organization_id}/members/{user_id}:
    put:
      tags:
        - Account
      summary: Update an organization member
      description: >-
        Update the name, surname, authentication tenant and organization member
        permissions of a member, then return the member. `name`, `surname` and
        `auth_tenant_id` are overwritten with the values sent (null when
        omitted), so always send them; `organization_member_permissions` only
        changes the permissions it lists and the other body fields are ignored.
        Use the sibling `enable` and `disable` operations to change
        `is_disabled`. Requires write permission on the member.
      operationId: put_organization_member_api
      parameters:
        - description: ID of the organization.
          in: path
          name: organization_id
          required: true
          schema:
            type: integer
        - description: ID of the member (user) within the organization.
          in: path
          name: user_id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrganizationMember'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/post_organization_members_api_200_response
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
          description: >-
            The request body is invalid, a permission name is unknown, or
            `auth_tenant_id` is not a tenant of the member's organization (code
            `INVALID_AUTH_TENANT_ID`).
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
          description: The caller cannot edit this member (code `FORBIDDEN`).
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
          description: >-
            The member does not exist in this organization or is not visible to
            the caller (code `NOT_FOUND`).
components:
  schemas:
    OrganizationMember:
      properties:
        id:
          description: ID of the member (user).
          type: integer
        name:
          description: First name of the member.
          type: string
        surname:
          description: Surname of the member.
          type: string
        email:
          description: Email address of the member.
          type: string
        organization_member_permissions:
          allOf:
            - $ref: '#/components/schemas/OrganizationMemberPermission'
          description: >-
            Organization member permissions, as an object mapping a permission
            name to a boolean; the only permission is `admin`.
          type: object
        is_disabled:
          description: Whether the account of the member is disabled.
          type: boolean
        registered_at:
          description: Date and time at which the member registered, in ISO 8601 format.
          format: date-time
          type: string
        urn:
          description: The uniform resource name of the member.
          type: string
      type: object
    post_organization_members_api_200_response:
      properties:
        member:
          $ref: '#/components/schemas/OrganizationMemberWithMetadata'
      type: object
    HttpError:
      properties:
        message:
          description: Human-readable description of the error.
          type: string
        code:
          description: Machine-readable error code.
          type: string
      type: object
    OrganizationMemberPermission:
      properties:
        '*':
          additionalProperties:
            type: boolean
          description: >-
            Whether the member holds the organization member permission named by
            the key; the only permission is `admin`.
          type: object
      type: object
    OrganizationMemberWithMetadata:
      properties:
        user:
          allOf:
            - $ref: '#/components/schemas/OrganizationMember'
          description: The member (user).
          type: object
        tenant_count:
          description: Number of tenants the member belongs to.
          type: integer
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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