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

> Update the name, description, number of employees and industry of a tenant and, when sent, its `prevent_global_search` setting, then return the tenant with its counts and limits. `global_search_calls_limit` is accepted but not applied. `prevent_global_search` cannot be turned on for tenants of a service firm. Requires write permission on the tenant.

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


## OpenAPI

````yaml firework-v2-openapi put /firework/v2/tenants/{tenant_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/tenants/{tenant_id}:
    put:
      tags:
        - Account
      summary: Update a tenant
      description: >-
        Update the name, description, number of employees and industry of a
        tenant and, when sent, its `prevent_global_search` setting, then return
        the tenant with its counts and limits. `global_search_calls_limit` is
        accepted but not applied. `prevent_global_search` cannot be turned on
        for tenants of a service firm. Requires write permission on the tenant.
      operationId: put_tenant_api
      parameters:
        - description: ID of the tenant.
          in: path
          name: tenant_id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TenantData'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantWithCounts'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
          description: >-
            The request body is invalid. Codes: `NO_EMPTY_TENANT_NAME` (empty
            name), `INVALID_IDENTIFIER_LIMIT` (the tenant's identifier limit is
            higher than the organization's).
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
          description: >-
            Codes: `FORBIDDEN` (the caller cannot edit this tenant),
            `CANNOT_SET_GLOBAL_SEARCH` (`prevent_global_search` sent as true for
            a tenant of a service firm).
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
          description: >-
            The tenant does not exist or is not visible to the caller (code
            `NOT_FOUND`).
components:
  schemas:
    TenantData:
      properties:
        name:
          description: The Tenant display name
          type: string
        description:
          description: The Tenant's purpose / description
          type: string
        number_of_employees:
          description: The number of employees for the tenant
          type: integer
        industry:
          description: The Tenant's industry
          enum:
            - global
            - transport
            - education
            - energy
            - finance
            - healthcare
            - manufacturing
            - retail
            - software
            - telecommunication
          example: global
          type: string
        global_search_calls_limit:
          description: The number of API calls allowed for the tenant.
          type: integer
        prevent_global_search:
          description: >-
            Whether to prevent the tenant from performing global searches; left
            unchanged when omitted.
          type: boolean
      required:
        - description
        - industry
        - name
        - number_of_employees
      type: object
    TenantWithCounts:
      properties:
        tenant:
          allOf:
            - $ref: '#/components/schemas/Tenant'
          description: The tenant.
          type: object
        identifier_count:
          description: >-
            Number of identifiers counted against the identifier limit of the
            tenant.
          type: integer
        user_count:
          description: Number of users that are members of the tenant.
          type: integer
        identities_limit:
          description: Maximum number of identities for the tenant.
          type: integer
        sandbox_submissions_limit:
          description: Maximum number of sandbox submissions for the tenant.
          type: integer
        sandbox_submissions_usage:
          description: Number of sandbox submissions used by the tenant.
          type: integer
      type: object
    HttpError:
      properties:
        message:
          description: Human-readable description of the error.
          type: string
        code:
          description: Machine-readable error code.
          type: string
      type: object
    Tenant:
      properties:
        id:
          description: Tenant ID
          type: integer
        name:
          description: Tenant name
          type: string
        type:
          description: Tenant type
          type: string
        description:
          description: This tenant's purpose
          type: string
        organization_id:
          description: ID of the owner organization
          type: integer
        urn:
          description: The uniform resource name of the tenant.
          type: string
        number_of_employees:
          description: The number of employees for the tenant.
          type: integer
        industry:
          description: The industry of the tenant.
          type: string
        is_disabled:
          description: Indicates if the tenant is disabled
          type: boolean
        is_archived:
          description: Indicates if the tenant is archived
          type: boolean
        feed_id:
          description: ID of the feed
          type: integer
        permissions:
          items:
            type: string
          type: array
        prevent_global_search:
          description: Indicates if the tenant can perform global searches
          type: boolean
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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