> ## 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 event tenant metadata

> Sets the tags, notes and severity override that the tenant the caller is acting in attaches to an event; they are returned as `tenant_metadata` in the feed items. Only the body fields that are present and not null are changed, and tags and notes replace the previous values. Returns the tenant metadata of the event after the update. Use `/events/actions` to ignore or remediate events.



## OpenAPI

````yaml firework-v4-openapi patch /firework/v4/events/tenant/metadata
openapi: 3.1.0
info:
  title: Firework API
  version: v4
servers:
  - url: https://api.flare.io
security:
  - BearerAuth: []
tags:
  - name: Audit Logs
    description: Audit trail of actions performed in the platform.
  - name: Credentials
    description: >-
      Leaked credentials: search across all sources or within a tenant, and
      remediate or ignore them.
  - name: Entities
    description: >-
      Threat intelligence entities such as actors, chat channels, forum threads
      and domains, and the relations between them.
  - name: Events
    description: >-
      Events collected by Flare: global search, tenant and identifier feeds,
      event details, actions and saved feed views.
  - name: Identifiers
    description: >-
      Identifiers are the assets a tenant monitors, such as domains, keywords
      and email addresses. Includes recommendations and authorization of
      sensitive identifiers.
  - name: Matching Policies
    description: >-
      Matching policies refine which events match identifiers. Manage policies
      and their assignment to identifiers.
  - name: Sandbox
    description: File uploads and their sandbox analysis.
  - name: Threat Flow
    description: >-
      Threat Flow intelligence requests, generated reports and conversation
      summaries.
paths:
  /firework/v4/events/tenant/metadata:
    patch:
      tags:
        - Events
      summary: Update event tenant metadata
      description: >-
        Sets the tags, notes and severity override that the tenant the caller is
        acting in attaches to an event; they are returned as `tenant_metadata`
        in the feed items. Only the body fields that are present and not null
        are changed, and tags and notes replace the previous values. Returns the
        tenant metadata of the event after the update. Use `/events/actions` to
        ignore or remediate events.
      operationId: update_tenant_metadata_events_tenant_metadata_patch
      parameters:
        - name: uid
          in: query
          required: true
          schema:
            type: string
            description: >-
              Uid of the event, formatted as `<type>/<source>/<id>`, as returned
              in `metadata.uid` of feed and search results.
            title: Uid
          description: >-
            Uid of the event, formatted as `<type>/<source>/<id>`, as returned
            in `metadata.uid` of feed and search results.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTenantMetadataBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantMetadataResponse'
        '400':
          description: INVALID_UID
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - INVALID_UID
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '401':
          description: UNAUTHORIZED
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - UNAUTHORIZED
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '404':
          description: NOT_FOUND
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - NOT_FOUND
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateTenantMetadataBody:
      properties:
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
          description: >-
            Tags to set on the event, replacing all its existing tags. Omit or
            send null to leave the tags unchanged.
        severity:
          anyOf:
            - $ref: '#/components/schemas/Severity'
            - type: 'null'
          description: >-
            Severity that overrides the one computed by Flare for this tenant.
            Omit or send null to leave it unchanged; an existing override cannot
            be removed with this endpoint.
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
          description: >-
            Notes to set on the event, replacing the existing notes. Omit or
            send null to leave the notes unchanged.
      type: object
      title: UpdateTenantMetadataBody
    TenantMetadataResponse:
      properties:
        uid:
          type: string
          title: Uid
          description: Uid of the event.
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
          description: Notes of the tenant on the event, null when none.
        tags:
          items:
            type: string
          type: array
          title: Tags
          description: Tags of the tenant on the event.
        severity:
          anyOf:
            - type: string
            - type: 'null'
          title: Severity
          description: >-
            Severity override set by the tenant (`info`, `low`, `medium`, `high`
            or `critical`), null when the event has no override.
      type: object
      required:
        - uid
        - notes
        - tags
        - severity
      title: TenantMetadataResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Severity:
      type: string
      enum:
        - info
        - low
        - medium
        - high
        - critical
      title: Severity
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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