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

# Bulk Upsert Event Labels



## OpenAPI

````yaml /api-reference/openapi.json post /api/runtime-security/apps/{app_uuid}/labeling/labels/bulk
openapi: 3.1.0
info:
  title: Blindsight API
  version: 0.1.0
  description: >-
    The full Blindsight REST surface, generated from the running application.
    Replace the server host with your own deployment.


    For the Runtime Security integration surface (scan, proxy, tool calls) see
    the Runtime Security spec, which is hand written and carries worked
    examples.
servers:
  - url: https://api.your-blindsight.com
    description: Your Blindsight deployment
security: []
paths:
  /api/runtime-security/apps/{app_uuid}/labeling/labels/bulk:
    post:
      tags:
        - runtime-security-apps
      summary: Bulk Upsert Event Labels
      operationId: >-
        bulk_upsert_event_labels_api_runtime_security_apps__app_uuid__labeling_labels_bulk_post
      parameters:
        - name: app_uuid
          in: path
          required: true
          schema:
            type: string
            title: App Uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventLabelBulkWrite'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventLabelBulkResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EventLabelBulkWrite:
      properties:
        event_uuids:
          items:
            type: string
          type: array
          maxItems: 1000
          minItems: 1
          title: Event Uuids
        dimension:
          type: string
          enum:
            - injection
            - pii
          title: Dimension
        mark:
          type: string
          enum:
            - confirm
            - false_positive
            - missed_detection
            - relabel
          title: Mark
        given_label:
          anyOf:
            - type: string
              maxLength: 64
            - type: 'null'
          title: Given Label
        corrected_intent:
          anyOf:
            - type: string
              maxLength: 32
            - type: 'null'
          title: Corrected Intent
        corrected_is_acting:
          anyOf:
            - type: string
              enum:
                - acting
                - framing
            - type: 'null'
          title: Corrected Is Acting
        corrected_pii_categories:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 32
            - type: 'null'
          title: Corrected Pii Categories
        note:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Note
      additionalProperties: false
      type: object
      required:
        - event_uuids
        - dimension
        - mark
      title: EventLabelBulkWrite
    EventLabelBulkResult:
      properties:
        updated:
          type: integer
          title: Updated
        skipped:
          type: integer
          title: Skipped
          default: 0
      type: object
      required:
        - updated
      title: EventLabelBulkResult
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````