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

# Upload App Events



## OpenAPI

````yaml /api-reference/openapi.json post /api/runtime-security/apps/{app_uuid}/events/upload
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}/events/upload:
    post:
      tags:
        - runtime-security-events
      summary: Upload App Events
      operationId: >-
        upload_app_events_api_runtime_security_apps__app_uuid__events_upload_post
      parameters:
        - name: app_uuid
          in: path
          required: true
          schema:
            type: string
            title: App Uuid
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_app_events_api_runtime_security_apps__app_uuid__events_upload_post
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventUploadRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_upload_app_events_api_runtime_security_apps__app_uuid__events_upload_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        fmt:
          anyOf:
            - type: string
            - type: 'null'
          title: Fmt
        auto_scan:
          type: boolean
          title: Auto Scan
          default: false
      type: object
      required:
        - file
      title: >-
        Body_upload_app_events_api_runtime_security_apps__app_uuid__events_upload_post
    EventUploadRead:
      properties:
        id:
          type: string
          title: Id
        filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Filename
        format:
          type: string
          title: Format
        status:
          type: string
          enum:
            - pending
            - parsing
            - complete
            - failed
          title: Status
        total_rows:
          type: integer
          title: Total Rows
        accepted_rows:
          type: integer
          title: Accepted Rows
        rejected_rows:
          type: integer
          title: Rejected Rows
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Errors
        auto_scan:
          type: boolean
          title: Auto Scan
        created_scan_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Created Scan Id
        created_at:
          type: string
          format: date-time
          title: Created At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
      type: object
      required:
        - id
        - format
        - status
        - total_rows
        - accepted_rows
        - rejected_rows
        - auto_scan
        - created_at
      title: EventUploadRead
    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

````