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

# Disable Organization Member

> Disable the account of a member of an organization and record the revocation date. Return the resulting `is_disabled` state. Use the sibling `enable` operation to restore the account. Requires write permission on the member.

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


## OpenAPI

````yaml firework-v2-openapi post /firework/v2/organizations/{organization_id}/members/{user_id}/disable
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}/disable:
    post:
      tags:
        - Account
      summary: Disable an organization member
      description: >-
        Disable the account of a member of an organization and record the
        revocation date. Return the resulting `is_disabled` state. Use the
        sibling `enable` operation to restore the account. Requires write
        permission on the member.
      operationId: post_organization_member_disable
      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
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnableState'
          description: Success
        '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:
    EnableState:
      properties:
        is_disabled:
          description: Whether the account of the member is disabled after the operation.
          type: boolean
      type: object
    HttpError:
      properties:
        message:
          description: Human-readable description of the error.
          type: string
        code:
          description: Machine-readable error code.
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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