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

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


## OpenAPI

````yaml firework-v2-openapi patch /firework/v2/reporting/reports/{report_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: Searches the threat activity database.
    name: search
  - description: Manage a user's or organization's identifiers
    name: Identifiers
  - description: Perform actions on activities.
    name: activities
  - description: Perform actions on the current user.
    name: me
  - description: Manage tenants.
    name: tenants
  - description: Admin management of organizations.
    name: organizations
  - description: Manage reporting as an admin.
    name: reporting
paths:
  /firework/v2/reporting/reports/{report_id}:
    patch:
      tags:
        - reporting
      operationId: patch_report_endpoint
      parameters:
        - in: path
          name: report_id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatedReport'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/post_reports_endpoint_200_response'
          description: Updates a report.
components:
  schemas:
    UpdatedReport:
      properties:
        title:
          type: string
        author:
          type: string
        elements:
          items:
            $ref: '#/components/schemas/ReportElementUpdate'
          type: array
        audience:
          enum:
            - technical
            - general
          example: technical
          type: string
      type: object
    post_reports_endpoint_200_response:
      properties:
        report:
          $ref: '#/components/schemas/Report'
      type: object
    ReportElementUpdate:
      properties:
        id:
          type: integer
        position:
          type: integer
        enabled:
          type: boolean
        sort_by:
          enum:
            - custom
            - alphabetical
            - date
          example: custom
          type: string
        time_interval:
          type: string
      type: object
    Report:
      properties:
        next:
          type: string
        items:
          items:
            $ref: '#/components/schemas/Report'
          type: array
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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