openapi: 3.0.3
info:
  title: Dropzone AI
  version: 0.1.0
  description: AI SOC Analyst
paths:
  /app/api/v1/chat/:
    post:
      operationId: chat_create
      description: |
        Send a chat query and receive an AI response.
        <br>
        This endpoint creates a new chat session if no <code>session_id</code> is provided,
        or reuses an existing session to maintain conversation context.
        <br><br>
        <strong>Usage:</strong>
        <br><br>
        POST to this endpoint with your question<br><br>
        Receive <code>session_id</code>, <code>message_id</code>, and <code>message_url</code> in response<br><br>
        Poll the <code>message_url</code> or <code>GET /app/api/v1/chat/{session_id}/message/{message_id}</code> for results<br><br>
        (Optional) Include <code>session_id</code> query param in subsequent queries to maintain context<br><br>
        (Optional) Include <code>retry_from_query_id</code> to retry a failed query
        (<code>error</code> or <code>timed_out</code>) in the same session.
        Attached files from the source query are reused when present.<br>
      parameters:
      - in: query
        name: session_id
        schema:
          type: string
        description: 'Optional: UUID of existing chat session to maintain conversation
          context'
      tags:
      - chat
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
                  description: Your question or chat message
                files:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        description: File name (e.g., 'document.pdf')
                      content:
                        type: string
                        description: Base64-encoded file content
                    required:
                    - name
                    - content
                  description: 'Optional: Files to include with your query. Each file
                    must have ''name'' and ''content'' (base64-encoded) fields.'
                retry_from_query_id:
                  type: integer
                  description: 'Optional: message ID of a failed query in the same
                    session to retry (source must be error or timed_out). Reuses attached
                    files from the source query when present.'
              required:
              - text
      security:
      - ApiKeyAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  session_id:
                    type: string
                    format: uuid
                  message_id:
                    type: integer
                  message_url:
                    type: string
          description: Chat query created successfully. Use the message_url to poll
            for results.
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
        '409':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
                  in_flight_query_id:
                    type: integer
          description: Another query in this session is still pending
  /app/api/v1/chat/{session_id}/message/{message_id}:
    get:
      operationId: chat_message_retrieve
      description: |
        Get the status and result of a chat message.
        <br><br>
        Poll until <code>status</code> is no longer <code>pending</code>
        (<code>done</code>, <code>canceled</code>, <code>error</code>, or <code>timed_out</code>).
        <br><br>
        <code>response_text</code> is null while pending; set on success or with an error message on failure.
        <br><br>
        <code>response_citations</code> is populated only when <code>status</code> is <code>done</code>.
        <br><br>
        <code>progress_messages</code> lists processing updates while pending (last entry is current).
      parameters:
      - in: path
        name: message_id
        schema:
          type: integer
        description: The message ID returned from POST /app/api/v1/chat/
        required: true
      - in: path
        name: session_id
        schema:
          type: string
        description: The chat session ID (UUID)
        required: true
      tags:
      - chat
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatQueryNested'
          description: Chat message details with status and response (if complete)
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
  /app/api/v1/config/investigation-threshold:
    get:
      operationId: investigation_threshold_retrieve_external
      description: Get investigation threshold configuration. The threshold controls
        the maximum number of investigations allowed within a time window, with optional
        per-alert-source limits.
      tags:
      - config
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvestigationThreshold'
          description: Investigation threshold configuration
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    patch:
      operationId: investigation_threshold_update_external
      description: 'Update investigation threshold configuration. Supports partial
        updates. Fields: is_enabled (bool), max_invs (positive int), time_unit (hour|day|week|month),
        max_by_alert_source (object mapping alert source labels to max counts).'
      tags:
      - config
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedInvestigationThreshold'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedInvestigationThreshold'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedInvestigationThreshold'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvestigationThreshold'
          description: Updated investigation threshold configuration
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/config/investigation-threshold/status:
    get:
      operationId: config_investigation_threshold_status_retrieve
      description: Get investigation threshold status including current progress toward
        limits and counts of exceeded/queued investigations. Returns real-time usage
        data for the current time window.
      tags:
      - config
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  progress:
                    type: object
                    nullable: true
                    description: Current progress toward threshold limits. null when
                      threshold is disabled (is_enabled=false).
                    properties:
                      time_unit:
                        type: string
                        enum:
                        - hour
                        - day
                        - week
                        - month
                      max_invs:
                        type: integer
                        minimum: 0
                      curr_invs:
                        type: integer
                        minimum: 0
                      by_alert_source:
                        type: object
                        description: 'Per-source progress. Valid keys: [''Check Point'',
                          ''Check Point Harmony Email & Collaboration'', ''DataDog'',
                          ''Gem'', ''Panther'']...'
                        additionalProperties:
                          type: object
                          properties:
                            max_invs:
                              type: integer
                              minimum: 0
                            curr_invs:
                              type: integer
                              minimum: 0
                        example:
                          CrowdStrike:
                            max_invs: 50
                            curr_invs: 12
                      now:
                        type: string
                        format: date-time
                      start:
                        type: string
                        format: date-time
                      end:
                        type: string
                        format: date-time
                    example:
                      time_unit: day
                      max_invs: 100
                      curr_invs: 42
                      by_alert_source:
                        CrowdStrike:
                          max_invs: 50
                          curr_invs: 12
                      now: '2026-01-08T12:00:00Z'
                      start: '2026-01-08T00:00:00Z'
                      end: '2026-01-09T00:00:00Z'
                  exceeded:
                    type: integer
                    minimum: 0
                  queued:
                    type: integer
                    minimum: 0
                example:
                  progress:
                    time_unit: day
                    max_invs: 100
                    curr_invs: 42
                    by_alert_source: {}
                    now: '2026-01-08T12:00:00Z'
                    start: '2026-01-08T00:00:00Z'
                    end: '2026-01-09T00:00:00Z'
                  exceeded: 3
                  queued: 5
          description: Threshold status with progress and counts
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/config/system:
    get:
      operationId: system_config_retrieve_external
      description: 'Get all system configuration data. Returns current config values.
        Sections: org_info, dashboard_defaults, response_benchmarks, time_saved, chatops,
        advanced_settings'
      tags:
      - config
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  org_info:
                    type: object
                    title: Organization Info
                    properties:
                      company_name:
                        title: Organization Display Name
                        description: The name shown to users across the platform interface.
                          This is for visual branding only.
                        type: string
                      company_name_ai:
                        title: Official Company Name
                        description: Your registered organization name. Our AI uses
                          this during security investigations to identify your assets
                          and differentiate internal networks from external entities.
                        type: string
                  dashboard_defaults:
                    type: object
                    title: Dashboard Defaults
                    properties:
                      time_range:
                        title: Time Range
                        type: string
                        oneOf:
                        - const: last24hours
                          title: Last 24 hours
                        - const: last3days
                          title: Last 3 days
                        - const: last7days
                          title: Last 7 days
                        - const: last30days
                          title: Last 30 days
                        - const: last6months
                          title: Last 6 months
                        - const: last1year
                          title: Last 1 year
                        default: last30days
                  response_benchmarks:
                    type: object
                    title: Response Metric Benchmarks
                    description: These allow you to set performance targets reflecting
                      a human analyst's best effort—such as acknowledging alerts within
                      1 hour. This enables you to directly compare our AI SOC analyst
                      platform's speed with typical human response times for detection,
                      acknowledgment, investigation, and conclusion.
                    properties:
                      target1_ttd:
                        title: Industry Average TTD (minutes)
                        type: number
                        default: 10
                      target2_tta:
                        title: Industry Average TTA (minutes)
                        type: number
                        default: 60
                      target3_tti:
                        title: Industry Average TTI (minutes)
                        type: number
                        default: 30
                      target4_ttc:
                        title: Industry Average TTC (minutes)
                        type: number
                        default: 120
                  response_actions:
                    type: object
                    title: Response Actions
                    properties:
                      inv_queue_alert_threshold:
                        title: INV Queue Alert Threshold (minutes)
                        description: Fire the 'INV > Status > Queued > For Too Long'
                          response trigger when an investigation has been queued longer
                          than this many minutes. Leave blank or 0 to disable.
                        type: number
                        minimum: 0
                  time_saved:
                    type: object
                    title: Value Metric Benchmarks
                    description: These are used as baselines in calculating dashboard
                      value metrics.
                    properties:
                      avg_min_per_inv:
                        title: Average minutes spent per manual investigation in your
                          environment
                        type: number
                        default: 25
                      avg_hours_per_week:
                        title: Average hours worked per week for one FTE analyst
                        type: number
                        default: 40
                      avg_cost_per_hour:
                        title: Average cost per hour for one FTE analyst
                        type: number
                        default: 60
                      human_rework_rate_pct:
                        title: Human-only rework rate (%)
                        description: Estimated share of manual investigations that
                          would require rework without Dropzone. Used as the Human-only
                          baseline for Investigation Completeness on the Value dashboard.
                        type: number
                        minimum: 0
                        maximum: 100
                        default: 18
                      soc_team_size:
                        title: SOC team size
                        description: Number of analysts on your SOC team. Used by
                          the "More Work. Same Team." Value dashboard metric.
                        type: number
                        minimum: 1
                        multipleOf: 1
                  business_hours:
                    type: object
                    title: Business Hours
                    description: Defines when alerts are considered on-hours for Value
                      dashboard coverage metrics. Weekends and observed U.S. federal
                      holidays remain off-hours.
                    properties:
                      timezone:
                        title: Time zone
                        description: Start and end times are interpreted in this time
                          zone, including daylight saving time.
                        type: string
                        oneOf:
                        - const: America/New_York
                          title: Eastern Time (New York)
                        - const: America/Chicago
                          title: Central Time (Chicago)
                        - const: America/Denver
                          title: Mountain Time (Denver)
                        - const: America/Phoenix
                          title: Arizona Time (Phoenix, no DST)
                        - const: America/Los_Angeles
                          title: Pacific Time (Los Angeles)
                        - const: America/Anchorage
                          title: Alaska Time (Anchorage)
                        - const: Pacific/Honolulu
                          title: Hawaii Time (Honolulu, no DST)
                        - const: America/Puerto_Rico
                          title: Atlantic Time (Puerto Rico, no DST)
                        - const: UTC
                          title: Coordinated Universal Time (UTC)
                        default: America/Los_Angeles
                      workday_start:
                        title: Workday starts
                        description: Alerts at or after this local time are considered
                          on-hours.
                        type: string
                        pattern: ^([01]\d|2[0-3]):[0-5]\d$
                        default: 05:00
                        ui:widget: TimeWidget
                      workday_end:
                        title: Workday ends
                        description: Alerts at or after this local time are considered
                          off-hours.
                        type: string
                        pattern: ^([01]\d|2[0-3]):[0-5]\d$
                        default: '17:00'
                        ui:widget: TimeWidget
                    ui:order:
                    - timezone
                    - workday_start
                    - workday_end
                  chatops:
                    type: object
                    title: ChatOps Configuration
                    description: Configure Slack app secrets for ChatOps commands
                      and notifications.
                    properties:
                      slack_signing_secret:
                        title: Slack Signing Secret
                        description: The signing secret from your Slack app, used
                          to verify requests from Slack.
                        type: string
                        format: password
                      slack_token:
                        title: Slack Bot Token
                        description: The bot token from your Slack app, used for making
                          API calls to Slack (e.g., xoxb-...).
                        type: string
                        format: password
                  poller_advanced_filtering:
                    type: object
                    title: Alert Advanced Filtering
                    properties:
                      paf_write_to_db:
                        type: boolean
                        default: true
                        title: Write filter uses to the database
                    allOf:
                    - if:
                        properties:
                          paf_write_to_db:
                            const: true
                      then:
                        properties:
                          paf_write_to_db_match_include:
                            type: boolean
                            default: true
                            title: Write [ match → include alert ]
                          paf_write_to_db_match_exclude:
                            type: boolean
                            default: true
                            title: Write [ match → exclude alert ]
                          paf_write_to_db_not_match:
                            type: boolean
                            default: true
                            title: Write [ not match ]
                          paf_write_to_db_error:
                            type: boolean
                            default: true
                            title: Write [ eval error ]
                          paf_write_to_db_lookback:
                            type: number
                            default: 30
                            title: Usage lookback (days)
                            description: How long to keep filter usage records in
                              the database.
                    ui:order:
                    - paf_write_to_db
                    - paf_write_to_db_match_include
                    - paf_write_to_db_match_exclude
                    - paf_write_to_db_not_match
                    - paf_write_to_db_error
                  phishing_simulation_config:
                    type: object
                    title: Phishing Simulation Configuration
                    description: Settings for identifying and ignoring phishing simulation
                      emails.
                    properties:
                      phishing_simulation_domains:
                        title: Phishing Simulation Domains
                        description: Emails whose From-header domain or any body URL
                          domain matches (or is a subdomain of) one of these will
                          be marked IGNORED without investigation.
                        type: array
                        items:
                          type: string
                        uniqueItems: true
                        default: []
                      phishing_simulation_headers:
                        title: Phishing Simulation Headers
                        description: Emails containing any of these header names will
                          be marked IGNORED without investigation as phishing simulations.
                          Header names are matched case-insensitively.
                        type: array
                        items:
                          type: string
                        uniqueItems: true
                        default: []
                  context_memory_approval:
                    type: object
                    title: Context Memory Approval
                    ui:field: HiddenField
                    properties:
                      enabled:
                        type: boolean
                        default: false
                      manual:
                        type: string
                        enum:
                        - allow
                        - require_review
                        default: allow
                      investigation_feedback:
                        type: string
                        enum:
                        - allow
                        - require_review
                        default: allow
                      integration_scans:
                        type: string
                        enum:
                        - allow
                        - require_review
                        default: require_review
                      changed:
                        type: object
                        additionalProperties:
                          type: object
                          properties:
                            by:
                              type: string
                            at:
                              type: string
                  alert_custom_fields:
                    title: Alert Custom Fields
                    type: object
                    properties:
                      enable_alert_custom_fields:
                        title: Enable Alert Custom Fields
                        type: boolean
                        default: false
                        description: Extract labeled values from each incoming alert
                          and save them with the alert.
                    allOf:
                    - if:
                        properties:
                          enable_alert_custom_fields:
                            const: true
                      then:
                        properties:
                          alert_custom_fields_entries:
                            title: Custom Fields
                            description: 'JSONPaths extracted from each incoming alert
                              and saved with a label, e.g. path `$.device.hostname`
                              with label `Hostname`. Every non-empty match is kept.
                              Paths run against the alert as received from the integration,
                              before enrichment. Prefer specific paths: recursive
                              paths like `$..hostname` scan the whole alert and slow
                              ingestion.'
                            type: array
                            maxItems: 25
                            default: []
                            items:
                              title: Custom Field
                              type: object
                              properties:
                                label:
                                  title: Label
                                  type: string
                                  minLength: 1
                                  maxLength: 128
                                path:
                                  title: Value JSONPath
                                  type: string
                                  minLength: 1
                                  maxLength: 512
                                value_template:
                                  title: Value Template (optional)
                                  description: 'Use {{value}} to insert the extracted
                                    value, like: https://example.org/items/{{value}}/detail'
                                  type: string
                                  maxLength: 1024
                                schema_keys:
                                  title: Sources (optional)
                                  description: Only extract this field from alerts
                                    that came from or were routed through any of these
                                    sources. Leave empty for all sources.
                                  type: array
                                  items:
                                    type: string
                                  uniqueItems: true
                                  ui:widget: SchemaKeysWidget
                              required:
                              - label
                              - path
                              ui:order:
                              - label
                              - path
                              - value_template
                              - schema_keys
                  advanced_settings:
                    type: object
                    title: Advanced Settings
                    properties:
                      enable_connector:
                        title: Enable Integration Connector
                        type: boolean
                        default: false
                        description: Enable for connecting to integrations behind
                          VPNs or firewalls.
                      enable_tenant_union:
                        title: Enable Multi-Tenant Map
                        type: boolean
                        default: false
                        description: Enable for vendor and/or dz-managed multi-tenant
                          integrations.
                      use_generated_alert_titles:
                        title: Display Generated Alert Titles
                        type: boolean
                        default: true
                        description: Enable to display Dropzone-generated alert titles,
                          otherwise display titles extracted from raw alert data.
                      enable_reinvestigate_btn:
                        title: Enable reinvestigation button
                        type: boolean
                        default: false
                        description: Allow users to re-run investigations for same
                          alert (counts against investigation quota)
                      advanced_alert_deduplication_settings:
                        title: Advanced Alert Deduplication Settings
                        type: object
                        properties:
                          enable_title_entity_deduplication:
                            title: Enable Title and Entity Deduplication
                            type: boolean
                            default: false
                            description: Enable to deduplicate alerts with identical
                              title and entity values within an 8 hour window.
                          enable_email_subject_sender_deduplication:
                            title: Enable Email Subject and Sender Deduplication
                            type: boolean
                            default: false
                            description: Enable to deduplicate email alerts with identical
                              subject and sender within the configured window.
                        allOf:
                        - if:
                            properties:
                              enable_title_entity_deduplication:
                                const: true
                          then:
                            properties:
                              title_entity_deduplication_settings:
                                title: Title and Entity Deduplication Settings
                                type: object
                                properties:
                                  title_entity_deduplication_minimum_entity_count:
                                    title: Minimum Entity Count
                                    description: If an alert has fewer than this many
                                      entities, it will not be considered for deduplication.
                                    type: number
                                    default: 3
                                    minimum: 2
                        - if:
                            properties:
                              enable_email_subject_sender_deduplication:
                                const: true
                          then:
                            properties:
                              email_subject_sender_deduplication_settings:
                                title: Email Subject and Sender Deduplication Settings
                                type: object
                                properties:
                                  email_subject_sender_deduplication_window_hours:
                                    title: Deduplication Window (hours)
                                    description: Email alerts with an identical subject
                                      and sender within this many hours will be deduplicated.
                                    type: number
                                    default: 4
                                    minimum: 1
                                    maximum: 8
                    allOf:
                    - if:
                        properties:
                          enable_tenant_union:
                            const: true
                      then:
                        properties:
                          enable_multi_slot:
                            title: Enable Multi-Slot Integrations
                            type: boolean
                            default: false
                            description: Enable to connect more than one instance
                              of supported integrations.
                    ui:order:
                    - enable_connector
                    - enable_reinvestigate_btn
                    - enable_tenant_union
                    - enable_multi_slot
                    - use_generated_alert_titles
                    - advanced_alert_deduplication_settings
                    - '*'
                ui:order:
                - org_info
                - dashboard_defaults
                - response_benchmarks
                - response_actions
                - time_saved
                - business_hours
                - chatops
                - poller_advanced_filtering
                - alert_custom_fields
                - phishing_simulation_config
                - advanced_settings
          description: System configuration data
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    put:
      operationId: system_config_replace_external
      description: Replace all system configuration data. Validates against JSON schema.
        Must include all sections.
      tags:
      - config
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                org_info:
                  type: object
                  title: Organization Info
                  properties:
                    company_name:
                      title: Organization Display Name
                      description: The name shown to users across the platform interface.
                        This is for visual branding only.
                      type: string
                    company_name_ai:
                      title: Official Company Name
                      description: Your registered organization name. Our AI uses
                        this during security investigations to identify your assets
                        and differentiate internal networks from external entities.
                      type: string
                dashboard_defaults:
                  type: object
                  title: Dashboard Defaults
                  properties:
                    time_range:
                      title: Time Range
                      type: string
                      oneOf:
                      - const: last24hours
                        title: Last 24 hours
                      - const: last3days
                        title: Last 3 days
                      - const: last7days
                        title: Last 7 days
                      - const: last30days
                        title: Last 30 days
                      - const: last6months
                        title: Last 6 months
                      - const: last1year
                        title: Last 1 year
                      default: last30days
                response_benchmarks:
                  type: object
                  title: Response Metric Benchmarks
                  description: These allow you to set performance targets reflecting
                    a human analyst's best effort—such as acknowledging alerts within
                    1 hour. This enables you to directly compare our AI SOC analyst
                    platform's speed with typical human response times for detection,
                    acknowledgment, investigation, and conclusion.
                  properties:
                    target1_ttd:
                      title: Industry Average TTD (minutes)
                      type: number
                      default: 10
                    target2_tta:
                      title: Industry Average TTA (minutes)
                      type: number
                      default: 60
                    target3_tti:
                      title: Industry Average TTI (minutes)
                      type: number
                      default: 30
                    target4_ttc:
                      title: Industry Average TTC (minutes)
                      type: number
                      default: 120
                response_actions:
                  type: object
                  title: Response Actions
                  properties:
                    inv_queue_alert_threshold:
                      title: INV Queue Alert Threshold (minutes)
                      description: Fire the 'INV > Status > Queued > For Too Long'
                        response trigger when an investigation has been queued longer
                        than this many minutes. Leave blank or 0 to disable.
                      type: number
                      minimum: 0
                time_saved:
                  type: object
                  title: Value Metric Benchmarks
                  description: These are used as baselines in calculating dashboard
                    value metrics.
                  properties:
                    avg_min_per_inv:
                      title: Average minutes spent per manual investigation in your
                        environment
                      type: number
                      default: 25
                    avg_hours_per_week:
                      title: Average hours worked per week for one FTE analyst
                      type: number
                      default: 40
                    avg_cost_per_hour:
                      title: Average cost per hour for one FTE analyst
                      type: number
                      default: 60
                    human_rework_rate_pct:
                      title: Human-only rework rate (%)
                      description: Estimated share of manual investigations that would
                        require rework without Dropzone. Used as the Human-only baseline
                        for Investigation Completeness on the Value dashboard.
                      type: number
                      minimum: 0
                      maximum: 100
                      default: 18
                    soc_team_size:
                      title: SOC team size
                      description: Number of analysts on your SOC team. Used by the
                        "More Work. Same Team." Value dashboard metric.
                      type: number
                      minimum: 1
                      multipleOf: 1
                business_hours:
                  type: object
                  title: Business Hours
                  description: Defines when alerts are considered on-hours for Value
                    dashboard coverage metrics. Weekends and observed U.S. federal
                    holidays remain off-hours.
                  properties:
                    timezone:
                      title: Time zone
                      description: Start and end times are interpreted in this time
                        zone, including daylight saving time.
                      type: string
                      oneOf:
                      - const: America/New_York
                        title: Eastern Time (New York)
                      - const: America/Chicago
                        title: Central Time (Chicago)
                      - const: America/Denver
                        title: Mountain Time (Denver)
                      - const: America/Phoenix
                        title: Arizona Time (Phoenix, no DST)
                      - const: America/Los_Angeles
                        title: Pacific Time (Los Angeles)
                      - const: America/Anchorage
                        title: Alaska Time (Anchorage)
                      - const: Pacific/Honolulu
                        title: Hawaii Time (Honolulu, no DST)
                      - const: America/Puerto_Rico
                        title: Atlantic Time (Puerto Rico, no DST)
                      - const: UTC
                        title: Coordinated Universal Time (UTC)
                      default: America/Los_Angeles
                    workday_start:
                      title: Workday starts
                      description: Alerts at or after this local time are considered
                        on-hours.
                      type: string
                      pattern: ^([01]\d|2[0-3]):[0-5]\d$
                      default: 05:00
                      ui:widget: TimeWidget
                    workday_end:
                      title: Workday ends
                      description: Alerts at or after this local time are considered
                        off-hours.
                      type: string
                      pattern: ^([01]\d|2[0-3]):[0-5]\d$
                      default: '17:00'
                      ui:widget: TimeWidget
                  ui:order:
                  - timezone
                  - workday_start
                  - workday_end
                chatops:
                  type: object
                  title: ChatOps Configuration
                  description: Configure Slack app secrets for ChatOps commands and
                    notifications.
                  properties:
                    slack_signing_secret:
                      title: Slack Signing Secret
                      description: The signing secret from your Slack app, used to
                        verify requests from Slack.
                      type: string
                      format: password
                    slack_token:
                      title: Slack Bot Token
                      description: The bot token from your Slack app, used for making
                        API calls to Slack (e.g., xoxb-...).
                      type: string
                      format: password
                poller_advanced_filtering:
                  type: object
                  title: Alert Advanced Filtering
                  properties:
                    paf_write_to_db:
                      type: boolean
                      default: true
                      title: Write filter uses to the database
                  allOf:
                  - if:
                      properties:
                        paf_write_to_db:
                          const: true
                    then:
                      properties:
                        paf_write_to_db_match_include:
                          type: boolean
                          default: true
                          title: Write [ match → include alert ]
                        paf_write_to_db_match_exclude:
                          type: boolean
                          default: true
                          title: Write [ match → exclude alert ]
                        paf_write_to_db_not_match:
                          type: boolean
                          default: true
                          title: Write [ not match ]
                        paf_write_to_db_error:
                          type: boolean
                          default: true
                          title: Write [ eval error ]
                        paf_write_to_db_lookback:
                          type: number
                          default: 30
                          title: Usage lookback (days)
                          description: How long to keep filter usage records in the
                            database.
                  ui:order:
                  - paf_write_to_db
                  - paf_write_to_db_match_include
                  - paf_write_to_db_match_exclude
                  - paf_write_to_db_not_match
                  - paf_write_to_db_error
                phishing_simulation_config:
                  type: object
                  title: Phishing Simulation Configuration
                  description: Settings for identifying and ignoring phishing simulation
                    emails.
                  properties:
                    phishing_simulation_domains:
                      title: Phishing Simulation Domains
                      description: Emails whose From-header domain or any body URL
                        domain matches (or is a subdomain of) one of these will be
                        marked IGNORED without investigation.
                      type: array
                      items:
                        type: string
                      uniqueItems: true
                      default: []
                    phishing_simulation_headers:
                      title: Phishing Simulation Headers
                      description: Emails containing any of these header names will
                        be marked IGNORED without investigation as phishing simulations.
                        Header names are matched case-insensitively.
                      type: array
                      items:
                        type: string
                      uniqueItems: true
                      default: []
                context_memory_approval:
                  type: object
                  title: Context Memory Approval
                  ui:field: HiddenField
                  properties:
                    enabled:
                      type: boolean
                      default: false
                    manual:
                      type: string
                      enum:
                      - allow
                      - require_review
                      default: allow
                    investigation_feedback:
                      type: string
                      enum:
                      - allow
                      - require_review
                      default: allow
                    integration_scans:
                      type: string
                      enum:
                      - allow
                      - require_review
                      default: require_review
                    changed:
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          by:
                            type: string
                          at:
                            type: string
                alert_custom_fields:
                  title: Alert Custom Fields
                  type: object
                  properties:
                    enable_alert_custom_fields:
                      title: Enable Alert Custom Fields
                      type: boolean
                      default: false
                      description: Extract labeled values from each incoming alert
                        and save them with the alert.
                  allOf:
                  - if:
                      properties:
                        enable_alert_custom_fields:
                          const: true
                    then:
                      properties:
                        alert_custom_fields_entries:
                          title: Custom Fields
                          description: 'JSONPaths extracted from each incoming alert
                            and saved with a label, e.g. path `$.device.hostname`
                            with label `Hostname`. Every non-empty match is kept.
                            Paths run against the alert as received from the integration,
                            before enrichment. Prefer specific paths: recursive paths
                            like `$..hostname` scan the whole alert and slow ingestion.'
                          type: array
                          maxItems: 25
                          default: []
                          items:
                            title: Custom Field
                            type: object
                            properties:
                              label:
                                title: Label
                                type: string
                                minLength: 1
                                maxLength: 128
                              path:
                                title: Value JSONPath
                                type: string
                                minLength: 1
                                maxLength: 512
                              value_template:
                                title: Value Template (optional)
                                description: 'Use {{value}} to insert the extracted
                                  value, like: https://example.org/items/{{value}}/detail'
                                type: string
                                maxLength: 1024
                              schema_keys:
                                title: Sources (optional)
                                description: Only extract this field from alerts that
                                  came from or were routed through any of these sources.
                                  Leave empty for all sources.
                                type: array
                                items:
                                  type: string
                                uniqueItems: true
                                ui:widget: SchemaKeysWidget
                            required:
                            - label
                            - path
                            ui:order:
                            - label
                            - path
                            - value_template
                            - schema_keys
                advanced_settings:
                  type: object
                  title: Advanced Settings
                  properties:
                    enable_connector:
                      title: Enable Integration Connector
                      type: boolean
                      default: false
                      description: Enable for connecting to integrations behind VPNs
                        or firewalls.
                    enable_tenant_union:
                      title: Enable Multi-Tenant Map
                      type: boolean
                      default: false
                      description: Enable for vendor and/or dz-managed multi-tenant
                        integrations.
                    use_generated_alert_titles:
                      title: Display Generated Alert Titles
                      type: boolean
                      default: true
                      description: Enable to display Dropzone-generated alert titles,
                        otherwise display titles extracted from raw alert data.
                    enable_reinvestigate_btn:
                      title: Enable reinvestigation button
                      type: boolean
                      default: false
                      description: Allow users to re-run investigations for same alert
                        (counts against investigation quota)
                    advanced_alert_deduplication_settings:
                      title: Advanced Alert Deduplication Settings
                      type: object
                      properties:
                        enable_title_entity_deduplication:
                          title: Enable Title and Entity Deduplication
                          type: boolean
                          default: false
                          description: Enable to deduplicate alerts with identical
                            title and entity values within an 8 hour window.
                        enable_email_subject_sender_deduplication:
                          title: Enable Email Subject and Sender Deduplication
                          type: boolean
                          default: false
                          description: Enable to deduplicate email alerts with identical
                            subject and sender within the configured window.
                      allOf:
                      - if:
                          properties:
                            enable_title_entity_deduplication:
                              const: true
                        then:
                          properties:
                            title_entity_deduplication_settings:
                              title: Title and Entity Deduplication Settings
                              type: object
                              properties:
                                title_entity_deduplication_minimum_entity_count:
                                  title: Minimum Entity Count
                                  description: If an alert has fewer than this many
                                    entities, it will not be considered for deduplication.
                                  type: number
                                  default: 3
                                  minimum: 2
                      - if:
                          properties:
                            enable_email_subject_sender_deduplication:
                              const: true
                        then:
                          properties:
                            email_subject_sender_deduplication_settings:
                              title: Email Subject and Sender Deduplication Settings
                              type: object
                              properties:
                                email_subject_sender_deduplication_window_hours:
                                  title: Deduplication Window (hours)
                                  description: Email alerts with an identical subject
                                    and sender within this many hours will be deduplicated.
                                  type: number
                                  default: 4
                                  minimum: 1
                                  maximum: 8
                  allOf:
                  - if:
                      properties:
                        enable_tenant_union:
                          const: true
                    then:
                      properties:
                        enable_multi_slot:
                          title: Enable Multi-Slot Integrations
                          type: boolean
                          default: false
                          description: Enable to connect more than one instance of
                            supported integrations.
                  ui:order:
                  - enable_connector
                  - enable_reinvestigate_btn
                  - enable_tenant_union
                  - enable_multi_slot
                  - use_generated_alert_titles
                  - advanced_alert_deduplication_settings
                  - '*'
              ui:order:
              - org_info
              - dashboard_defaults
              - response_benchmarks
              - response_actions
              - time_saved
              - business_hours
              - chatops
              - poller_advanced_filtering
              - alert_custom_fields
              - phishing_simulation_config
              - advanced_settings
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  org_info:
                    type: object
                    title: Organization Info
                    properties:
                      company_name:
                        title: Organization Display Name
                        description: The name shown to users across the platform interface.
                          This is for visual branding only.
                        type: string
                      company_name_ai:
                        title: Official Company Name
                        description: Your registered organization name. Our AI uses
                          this during security investigations to identify your assets
                          and differentiate internal networks from external entities.
                        type: string
                  dashboard_defaults:
                    type: object
                    title: Dashboard Defaults
                    properties:
                      time_range:
                        title: Time Range
                        type: string
                        oneOf:
                        - const: last24hours
                          title: Last 24 hours
                        - const: last3days
                          title: Last 3 days
                        - const: last7days
                          title: Last 7 days
                        - const: last30days
                          title: Last 30 days
                        - const: last6months
                          title: Last 6 months
                        - const: last1year
                          title: Last 1 year
                        default: last30days
                  response_benchmarks:
                    type: object
                    title: Response Metric Benchmarks
                    description: These allow you to set performance targets reflecting
                      a human analyst's best effort—such as acknowledging alerts within
                      1 hour. This enables you to directly compare our AI SOC analyst
                      platform's speed with typical human response times for detection,
                      acknowledgment, investigation, and conclusion.
                    properties:
                      target1_ttd:
                        title: Industry Average TTD (minutes)
                        type: number
                        default: 10
                      target2_tta:
                        title: Industry Average TTA (minutes)
                        type: number
                        default: 60
                      target3_tti:
                        title: Industry Average TTI (minutes)
                        type: number
                        default: 30
                      target4_ttc:
                        title: Industry Average TTC (minutes)
                        type: number
                        default: 120
                  response_actions:
                    type: object
                    title: Response Actions
                    properties:
                      inv_queue_alert_threshold:
                        title: INV Queue Alert Threshold (minutes)
                        description: Fire the 'INV > Status > Queued > For Too Long'
                          response trigger when an investigation has been queued longer
                          than this many minutes. Leave blank or 0 to disable.
                        type: number
                        minimum: 0
                  time_saved:
                    type: object
                    title: Value Metric Benchmarks
                    description: These are used as baselines in calculating dashboard
                      value metrics.
                    properties:
                      avg_min_per_inv:
                        title: Average minutes spent per manual investigation in your
                          environment
                        type: number
                        default: 25
                      avg_hours_per_week:
                        title: Average hours worked per week for one FTE analyst
                        type: number
                        default: 40
                      avg_cost_per_hour:
                        title: Average cost per hour for one FTE analyst
                        type: number
                        default: 60
                      human_rework_rate_pct:
                        title: Human-only rework rate (%)
                        description: Estimated share of manual investigations that
                          would require rework without Dropzone. Used as the Human-only
                          baseline for Investigation Completeness on the Value dashboard.
                        type: number
                        minimum: 0
                        maximum: 100
                        default: 18
                      soc_team_size:
                        title: SOC team size
                        description: Number of analysts on your SOC team. Used by
                          the "More Work. Same Team." Value dashboard metric.
                        type: number
                        minimum: 1
                        multipleOf: 1
                  business_hours:
                    type: object
                    title: Business Hours
                    description: Defines when alerts are considered on-hours for Value
                      dashboard coverage metrics. Weekends and observed U.S. federal
                      holidays remain off-hours.
                    properties:
                      timezone:
                        title: Time zone
                        description: Start and end times are interpreted in this time
                          zone, including daylight saving time.
                        type: string
                        oneOf:
                        - const: America/New_York
                          title: Eastern Time (New York)
                        - const: America/Chicago
                          title: Central Time (Chicago)
                        - const: America/Denver
                          title: Mountain Time (Denver)
                        - const: America/Phoenix
                          title: Arizona Time (Phoenix, no DST)
                        - const: America/Los_Angeles
                          title: Pacific Time (Los Angeles)
                        - const: America/Anchorage
                          title: Alaska Time (Anchorage)
                        - const: Pacific/Honolulu
                          title: Hawaii Time (Honolulu, no DST)
                        - const: America/Puerto_Rico
                          title: Atlantic Time (Puerto Rico, no DST)
                        - const: UTC
                          title: Coordinated Universal Time (UTC)
                        default: America/Los_Angeles
                      workday_start:
                        title: Workday starts
                        description: Alerts at or after this local time are considered
                          on-hours.
                        type: string
                        pattern: ^([01]\d|2[0-3]):[0-5]\d$
                        default: 05:00
                        ui:widget: TimeWidget
                      workday_end:
                        title: Workday ends
                        description: Alerts at or after this local time are considered
                          off-hours.
                        type: string
                        pattern: ^([01]\d|2[0-3]):[0-5]\d$
                        default: '17:00'
                        ui:widget: TimeWidget
                    ui:order:
                    - timezone
                    - workday_start
                    - workday_end
                  chatops:
                    type: object
                    title: ChatOps Configuration
                    description: Configure Slack app secrets for ChatOps commands
                      and notifications.
                    properties:
                      slack_signing_secret:
                        title: Slack Signing Secret
                        description: The signing secret from your Slack app, used
                          to verify requests from Slack.
                        type: string
                        format: password
                      slack_token:
                        title: Slack Bot Token
                        description: The bot token from your Slack app, used for making
                          API calls to Slack (e.g., xoxb-...).
                        type: string
                        format: password
                  poller_advanced_filtering:
                    type: object
                    title: Alert Advanced Filtering
                    properties:
                      paf_write_to_db:
                        type: boolean
                        default: true
                        title: Write filter uses to the database
                    allOf:
                    - if:
                        properties:
                          paf_write_to_db:
                            const: true
                      then:
                        properties:
                          paf_write_to_db_match_include:
                            type: boolean
                            default: true
                            title: Write [ match → include alert ]
                          paf_write_to_db_match_exclude:
                            type: boolean
                            default: true
                            title: Write [ match → exclude alert ]
                          paf_write_to_db_not_match:
                            type: boolean
                            default: true
                            title: Write [ not match ]
                          paf_write_to_db_error:
                            type: boolean
                            default: true
                            title: Write [ eval error ]
                          paf_write_to_db_lookback:
                            type: number
                            default: 30
                            title: Usage lookback (days)
                            description: How long to keep filter usage records in
                              the database.
                    ui:order:
                    - paf_write_to_db
                    - paf_write_to_db_match_include
                    - paf_write_to_db_match_exclude
                    - paf_write_to_db_not_match
                    - paf_write_to_db_error
                  phishing_simulation_config:
                    type: object
                    title: Phishing Simulation Configuration
                    description: Settings for identifying and ignoring phishing simulation
                      emails.
                    properties:
                      phishing_simulation_domains:
                        title: Phishing Simulation Domains
                        description: Emails whose From-header domain or any body URL
                          domain matches (or is a subdomain of) one of these will
                          be marked IGNORED without investigation.
                        type: array
                        items:
                          type: string
                        uniqueItems: true
                        default: []
                      phishing_simulation_headers:
                        title: Phishing Simulation Headers
                        description: Emails containing any of these header names will
                          be marked IGNORED without investigation as phishing simulations.
                          Header names are matched case-insensitively.
                        type: array
                        items:
                          type: string
                        uniqueItems: true
                        default: []
                  context_memory_approval:
                    type: object
                    title: Context Memory Approval
                    ui:field: HiddenField
                    properties:
                      enabled:
                        type: boolean
                        default: false
                      manual:
                        type: string
                        enum:
                        - allow
                        - require_review
                        default: allow
                      investigation_feedback:
                        type: string
                        enum:
                        - allow
                        - require_review
                        default: allow
                      integration_scans:
                        type: string
                        enum:
                        - allow
                        - require_review
                        default: require_review
                      changed:
                        type: object
                        additionalProperties:
                          type: object
                          properties:
                            by:
                              type: string
                            at:
                              type: string
                  alert_custom_fields:
                    title: Alert Custom Fields
                    type: object
                    properties:
                      enable_alert_custom_fields:
                        title: Enable Alert Custom Fields
                        type: boolean
                        default: false
                        description: Extract labeled values from each incoming alert
                          and save them with the alert.
                    allOf:
                    - if:
                        properties:
                          enable_alert_custom_fields:
                            const: true
                      then:
                        properties:
                          alert_custom_fields_entries:
                            title: Custom Fields
                            description: 'JSONPaths extracted from each incoming alert
                              and saved with a label, e.g. path `$.device.hostname`
                              with label `Hostname`. Every non-empty match is kept.
                              Paths run against the alert as received from the integration,
                              before enrichment. Prefer specific paths: recursive
                              paths like `$..hostname` scan the whole alert and slow
                              ingestion.'
                            type: array
                            maxItems: 25
                            default: []
                            items:
                              title: Custom Field
                              type: object
                              properties:
                                label:
                                  title: Label
                                  type: string
                                  minLength: 1
                                  maxLength: 128
                                path:
                                  title: Value JSONPath
                                  type: string
                                  minLength: 1
                                  maxLength: 512
                                value_template:
                                  title: Value Template (optional)
                                  description: 'Use {{value}} to insert the extracted
                                    value, like: https://example.org/items/{{value}}/detail'
                                  type: string
                                  maxLength: 1024
                                schema_keys:
                                  title: Sources (optional)
                                  description: Only extract this field from alerts
                                    that came from or were routed through any of these
                                    sources. Leave empty for all sources.
                                  type: array
                                  items:
                                    type: string
                                  uniqueItems: true
                                  ui:widget: SchemaKeysWidget
                              required:
                              - label
                              - path
                              ui:order:
                              - label
                              - path
                              - value_template
                              - schema_keys
                  advanced_settings:
                    type: object
                    title: Advanced Settings
                    properties:
                      enable_connector:
                        title: Enable Integration Connector
                        type: boolean
                        default: false
                        description: Enable for connecting to integrations behind
                          VPNs or firewalls.
                      enable_tenant_union:
                        title: Enable Multi-Tenant Map
                        type: boolean
                        default: false
                        description: Enable for vendor and/or dz-managed multi-tenant
                          integrations.
                      use_generated_alert_titles:
                        title: Display Generated Alert Titles
                        type: boolean
                        default: true
                        description: Enable to display Dropzone-generated alert titles,
                          otherwise display titles extracted from raw alert data.
                      enable_reinvestigate_btn:
                        title: Enable reinvestigation button
                        type: boolean
                        default: false
                        description: Allow users to re-run investigations for same
                          alert (counts against investigation quota)
                      advanced_alert_deduplication_settings:
                        title: Advanced Alert Deduplication Settings
                        type: object
                        properties:
                          enable_title_entity_deduplication:
                            title: Enable Title and Entity Deduplication
                            type: boolean
                            default: false
                            description: Enable to deduplicate alerts with identical
                              title and entity values within an 8 hour window.
                          enable_email_subject_sender_deduplication:
                            title: Enable Email Subject and Sender Deduplication
                            type: boolean
                            default: false
                            description: Enable to deduplicate email alerts with identical
                              subject and sender within the configured window.
                        allOf:
                        - if:
                            properties:
                              enable_title_entity_deduplication:
                                const: true
                          then:
                            properties:
                              title_entity_deduplication_settings:
                                title: Title and Entity Deduplication Settings
                                type: object
                                properties:
                                  title_entity_deduplication_minimum_entity_count:
                                    title: Minimum Entity Count
                                    description: If an alert has fewer than this many
                                      entities, it will not be considered for deduplication.
                                    type: number
                                    default: 3
                                    minimum: 2
                        - if:
                            properties:
                              enable_email_subject_sender_deduplication:
                                const: true
                          then:
                            properties:
                              email_subject_sender_deduplication_settings:
                                title: Email Subject and Sender Deduplication Settings
                                type: object
                                properties:
                                  email_subject_sender_deduplication_window_hours:
                                    title: Deduplication Window (hours)
                                    description: Email alerts with an identical subject
                                      and sender within this many hours will be deduplicated.
                                    type: number
                                    default: 4
                                    minimum: 1
                                    maximum: 8
                    allOf:
                    - if:
                        properties:
                          enable_tenant_union:
                            const: true
                      then:
                        properties:
                          enable_multi_slot:
                            title: Enable Multi-Slot Integrations
                            type: boolean
                            default: false
                            description: Enable to connect more than one instance
                              of supported integrations.
                    ui:order:
                    - enable_connector
                    - enable_reinvestigate_btn
                    - enable_tenant_union
                    - enable_multi_slot
                    - use_generated_alert_titles
                    - advanced_alert_deduplication_settings
                    - '*'
                ui:order:
                - org_info
                - dashboard_defaults
                - response_benchmarks
                - response_actions
                - time_saved
                - business_hours
                - chatops
                - poller_advanced_filtering
                - alert_custom_fields
                - phishing_simulation_config
                - advanced_settings
          description: Updated system configuration
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    patch:
      operationId: system_config_update_external
      description: 'Partially update system configuration (deep merge with existing).
        Send any subset of config. Example: {"advanced_settings": {"enable_connector":
        true}}'
      tags:
      - config
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                org_info:
                  type: object
                  title: Organization Info
                  properties:
                    company_name:
                      title: Organization Display Name
                      description: The name shown to users across the platform interface.
                        This is for visual branding only.
                      type: string
                    company_name_ai:
                      title: Official Company Name
                      description: Your registered organization name. Our AI uses
                        this during security investigations to identify your assets
                        and differentiate internal networks from external entities.
                      type: string
                dashboard_defaults:
                  type: object
                  title: Dashboard Defaults
                  properties:
                    time_range:
                      title: Time Range
                      type: string
                      oneOf:
                      - const: last24hours
                        title: Last 24 hours
                      - const: last3days
                        title: Last 3 days
                      - const: last7days
                        title: Last 7 days
                      - const: last30days
                        title: Last 30 days
                      - const: last6months
                        title: Last 6 months
                      - const: last1year
                        title: Last 1 year
                      default: last30days
                response_benchmarks:
                  type: object
                  title: Response Metric Benchmarks
                  description: These allow you to set performance targets reflecting
                    a human analyst's best effort—such as acknowledging alerts within
                    1 hour. This enables you to directly compare our AI SOC analyst
                    platform's speed with typical human response times for detection,
                    acknowledgment, investigation, and conclusion.
                  properties:
                    target1_ttd:
                      title: Industry Average TTD (minutes)
                      type: number
                      default: 10
                    target2_tta:
                      title: Industry Average TTA (minutes)
                      type: number
                      default: 60
                    target3_tti:
                      title: Industry Average TTI (minutes)
                      type: number
                      default: 30
                    target4_ttc:
                      title: Industry Average TTC (minutes)
                      type: number
                      default: 120
                response_actions:
                  type: object
                  title: Response Actions
                  properties:
                    inv_queue_alert_threshold:
                      title: INV Queue Alert Threshold (minutes)
                      description: Fire the 'INV > Status > Queued > For Too Long'
                        response trigger when an investigation has been queued longer
                        than this many minutes. Leave blank or 0 to disable.
                      type: number
                      minimum: 0
                time_saved:
                  type: object
                  title: Value Metric Benchmarks
                  description: These are used as baselines in calculating dashboard
                    value metrics.
                  properties:
                    avg_min_per_inv:
                      title: Average minutes spent per manual investigation in your
                        environment
                      type: number
                      default: 25
                    avg_hours_per_week:
                      title: Average hours worked per week for one FTE analyst
                      type: number
                      default: 40
                    avg_cost_per_hour:
                      title: Average cost per hour for one FTE analyst
                      type: number
                      default: 60
                    human_rework_rate_pct:
                      title: Human-only rework rate (%)
                      description: Estimated share of manual investigations that would
                        require rework without Dropzone. Used as the Human-only baseline
                        for Investigation Completeness on the Value dashboard.
                      type: number
                      minimum: 0
                      maximum: 100
                      default: 18
                    soc_team_size:
                      title: SOC team size
                      description: Number of analysts on your SOC team. Used by the
                        "More Work. Same Team." Value dashboard metric.
                      type: number
                      minimum: 1
                      multipleOf: 1
                business_hours:
                  type: object
                  title: Business Hours
                  description: Defines when alerts are considered on-hours for Value
                    dashboard coverage metrics. Weekends and observed U.S. federal
                    holidays remain off-hours.
                  properties:
                    timezone:
                      title: Time zone
                      description: Start and end times are interpreted in this time
                        zone, including daylight saving time.
                      type: string
                      oneOf:
                      - const: America/New_York
                        title: Eastern Time (New York)
                      - const: America/Chicago
                        title: Central Time (Chicago)
                      - const: America/Denver
                        title: Mountain Time (Denver)
                      - const: America/Phoenix
                        title: Arizona Time (Phoenix, no DST)
                      - const: America/Los_Angeles
                        title: Pacific Time (Los Angeles)
                      - const: America/Anchorage
                        title: Alaska Time (Anchorage)
                      - const: Pacific/Honolulu
                        title: Hawaii Time (Honolulu, no DST)
                      - const: America/Puerto_Rico
                        title: Atlantic Time (Puerto Rico, no DST)
                      - const: UTC
                        title: Coordinated Universal Time (UTC)
                      default: America/Los_Angeles
                    workday_start:
                      title: Workday starts
                      description: Alerts at or after this local time are considered
                        on-hours.
                      type: string
                      pattern: ^([01]\d|2[0-3]):[0-5]\d$
                      default: 05:00
                      ui:widget: TimeWidget
                    workday_end:
                      title: Workday ends
                      description: Alerts at or after this local time are considered
                        off-hours.
                      type: string
                      pattern: ^([01]\d|2[0-3]):[0-5]\d$
                      default: '17:00'
                      ui:widget: TimeWidget
                  ui:order:
                  - timezone
                  - workday_start
                  - workday_end
                chatops:
                  type: object
                  title: ChatOps Configuration
                  description: Configure Slack app secrets for ChatOps commands and
                    notifications.
                  properties:
                    slack_signing_secret:
                      title: Slack Signing Secret
                      description: The signing secret from your Slack app, used to
                        verify requests from Slack.
                      type: string
                      format: password
                    slack_token:
                      title: Slack Bot Token
                      description: The bot token from your Slack app, used for making
                        API calls to Slack (e.g., xoxb-...).
                      type: string
                      format: password
                poller_advanced_filtering:
                  type: object
                  title: Alert Advanced Filtering
                  properties:
                    paf_write_to_db:
                      type: boolean
                      default: true
                      title: Write filter uses to the database
                  allOf:
                  - if:
                      properties:
                        paf_write_to_db:
                          const: true
                    then:
                      properties:
                        paf_write_to_db_match_include:
                          type: boolean
                          default: true
                          title: Write [ match → include alert ]
                        paf_write_to_db_match_exclude:
                          type: boolean
                          default: true
                          title: Write [ match → exclude alert ]
                        paf_write_to_db_not_match:
                          type: boolean
                          default: true
                          title: Write [ not match ]
                        paf_write_to_db_error:
                          type: boolean
                          default: true
                          title: Write [ eval error ]
                        paf_write_to_db_lookback:
                          type: number
                          default: 30
                          title: Usage lookback (days)
                          description: How long to keep filter usage records in the
                            database.
                  ui:order:
                  - paf_write_to_db
                  - paf_write_to_db_match_include
                  - paf_write_to_db_match_exclude
                  - paf_write_to_db_not_match
                  - paf_write_to_db_error
                phishing_simulation_config:
                  type: object
                  title: Phishing Simulation Configuration
                  description: Settings for identifying and ignoring phishing simulation
                    emails.
                  properties:
                    phishing_simulation_domains:
                      title: Phishing Simulation Domains
                      description: Emails whose From-header domain or any body URL
                        domain matches (or is a subdomain of) one of these will be
                        marked IGNORED without investigation.
                      type: array
                      items:
                        type: string
                      uniqueItems: true
                      default: []
                    phishing_simulation_headers:
                      title: Phishing Simulation Headers
                      description: Emails containing any of these header names will
                        be marked IGNORED without investigation as phishing simulations.
                        Header names are matched case-insensitively.
                      type: array
                      items:
                        type: string
                      uniqueItems: true
                      default: []
                context_memory_approval:
                  type: object
                  title: Context Memory Approval
                  ui:field: HiddenField
                  properties:
                    enabled:
                      type: boolean
                      default: false
                    manual:
                      type: string
                      enum:
                      - allow
                      - require_review
                      default: allow
                    investigation_feedback:
                      type: string
                      enum:
                      - allow
                      - require_review
                      default: allow
                    integration_scans:
                      type: string
                      enum:
                      - allow
                      - require_review
                      default: require_review
                    changed:
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          by:
                            type: string
                          at:
                            type: string
                alert_custom_fields:
                  title: Alert Custom Fields
                  type: object
                  properties:
                    enable_alert_custom_fields:
                      title: Enable Alert Custom Fields
                      type: boolean
                      default: false
                      description: Extract labeled values from each incoming alert
                        and save them with the alert.
                  allOf:
                  - if:
                      properties:
                        enable_alert_custom_fields:
                          const: true
                    then:
                      properties:
                        alert_custom_fields_entries:
                          title: Custom Fields
                          description: 'JSONPaths extracted from each incoming alert
                            and saved with a label, e.g. path `$.device.hostname`
                            with label `Hostname`. Every non-empty match is kept.
                            Paths run against the alert as received from the integration,
                            before enrichment. Prefer specific paths: recursive paths
                            like `$..hostname` scan the whole alert and slow ingestion.'
                          type: array
                          maxItems: 25
                          default: []
                          items:
                            title: Custom Field
                            type: object
                            properties:
                              label:
                                title: Label
                                type: string
                                minLength: 1
                                maxLength: 128
                              path:
                                title: Value JSONPath
                                type: string
                                minLength: 1
                                maxLength: 512
                              value_template:
                                title: Value Template (optional)
                                description: 'Use {{value}} to insert the extracted
                                  value, like: https://example.org/items/{{value}}/detail'
                                type: string
                                maxLength: 1024
                              schema_keys:
                                title: Sources (optional)
                                description: Only extract this field from alerts that
                                  came from or were routed through any of these sources.
                                  Leave empty for all sources.
                                type: array
                                items:
                                  type: string
                                uniqueItems: true
                                ui:widget: SchemaKeysWidget
                            required:
                            - label
                            - path
                            ui:order:
                            - label
                            - path
                            - value_template
                            - schema_keys
                advanced_settings:
                  type: object
                  title: Advanced Settings
                  properties:
                    enable_connector:
                      title: Enable Integration Connector
                      type: boolean
                      default: false
                      description: Enable for connecting to integrations behind VPNs
                        or firewalls.
                    enable_tenant_union:
                      title: Enable Multi-Tenant Map
                      type: boolean
                      default: false
                      description: Enable for vendor and/or dz-managed multi-tenant
                        integrations.
                    use_generated_alert_titles:
                      title: Display Generated Alert Titles
                      type: boolean
                      default: true
                      description: Enable to display Dropzone-generated alert titles,
                        otherwise display titles extracted from raw alert data.
                    enable_reinvestigate_btn:
                      title: Enable reinvestigation button
                      type: boolean
                      default: false
                      description: Allow users to re-run investigations for same alert
                        (counts against investigation quota)
                    advanced_alert_deduplication_settings:
                      title: Advanced Alert Deduplication Settings
                      type: object
                      properties:
                        enable_title_entity_deduplication:
                          title: Enable Title and Entity Deduplication
                          type: boolean
                          default: false
                          description: Enable to deduplicate alerts with identical
                            title and entity values within an 8 hour window.
                        enable_email_subject_sender_deduplication:
                          title: Enable Email Subject and Sender Deduplication
                          type: boolean
                          default: false
                          description: Enable to deduplicate email alerts with identical
                            subject and sender within the configured window.
                      allOf:
                      - if:
                          properties:
                            enable_title_entity_deduplication:
                              const: true
                        then:
                          properties:
                            title_entity_deduplication_settings:
                              title: Title and Entity Deduplication Settings
                              type: object
                              properties:
                                title_entity_deduplication_minimum_entity_count:
                                  title: Minimum Entity Count
                                  description: If an alert has fewer than this many
                                    entities, it will not be considered for deduplication.
                                  type: number
                                  default: 3
                                  minimum: 2
                      - if:
                          properties:
                            enable_email_subject_sender_deduplication:
                              const: true
                        then:
                          properties:
                            email_subject_sender_deduplication_settings:
                              title: Email Subject and Sender Deduplication Settings
                              type: object
                              properties:
                                email_subject_sender_deduplication_window_hours:
                                  title: Deduplication Window (hours)
                                  description: Email alerts with an identical subject
                                    and sender within this many hours will be deduplicated.
                                  type: number
                                  default: 4
                                  minimum: 1
                                  maximum: 8
                  allOf:
                  - if:
                      properties:
                        enable_tenant_union:
                          const: true
                    then:
                      properties:
                        enable_multi_slot:
                          title: Enable Multi-Slot Integrations
                          type: boolean
                          default: false
                          description: Enable to connect more than one instance of
                            supported integrations.
                  ui:order:
                  - enable_connector
                  - enable_reinvestigate_btn
                  - enable_tenant_union
                  - enable_multi_slot
                  - use_generated_alert_titles
                  - advanced_alert_deduplication_settings
                  - '*'
              ui:order:
              - org_info
              - dashboard_defaults
              - response_benchmarks
              - response_actions
              - time_saved
              - business_hours
              - chatops
              - poller_advanced_filtering
              - alert_custom_fields
              - phishing_simulation_config
              - advanced_settings
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  org_info:
                    type: object
                    title: Organization Info
                    properties:
                      company_name:
                        title: Organization Display Name
                        description: The name shown to users across the platform interface.
                          This is for visual branding only.
                        type: string
                      company_name_ai:
                        title: Official Company Name
                        description: Your registered organization name. Our AI uses
                          this during security investigations to identify your assets
                          and differentiate internal networks from external entities.
                        type: string
                  dashboard_defaults:
                    type: object
                    title: Dashboard Defaults
                    properties:
                      time_range:
                        title: Time Range
                        type: string
                        oneOf:
                        - const: last24hours
                          title: Last 24 hours
                        - const: last3days
                          title: Last 3 days
                        - const: last7days
                          title: Last 7 days
                        - const: last30days
                          title: Last 30 days
                        - const: last6months
                          title: Last 6 months
                        - const: last1year
                          title: Last 1 year
                        default: last30days
                  response_benchmarks:
                    type: object
                    title: Response Metric Benchmarks
                    description: These allow you to set performance targets reflecting
                      a human analyst's best effort—such as acknowledging alerts within
                      1 hour. This enables you to directly compare our AI SOC analyst
                      platform's speed with typical human response times for detection,
                      acknowledgment, investigation, and conclusion.
                    properties:
                      target1_ttd:
                        title: Industry Average TTD (minutes)
                        type: number
                        default: 10
                      target2_tta:
                        title: Industry Average TTA (minutes)
                        type: number
                        default: 60
                      target3_tti:
                        title: Industry Average TTI (minutes)
                        type: number
                        default: 30
                      target4_ttc:
                        title: Industry Average TTC (minutes)
                        type: number
                        default: 120
                  response_actions:
                    type: object
                    title: Response Actions
                    properties:
                      inv_queue_alert_threshold:
                        title: INV Queue Alert Threshold (minutes)
                        description: Fire the 'INV > Status > Queued > For Too Long'
                          response trigger when an investigation has been queued longer
                          than this many minutes. Leave blank or 0 to disable.
                        type: number
                        minimum: 0
                  time_saved:
                    type: object
                    title: Value Metric Benchmarks
                    description: These are used as baselines in calculating dashboard
                      value metrics.
                    properties:
                      avg_min_per_inv:
                        title: Average minutes spent per manual investigation in your
                          environment
                        type: number
                        default: 25
                      avg_hours_per_week:
                        title: Average hours worked per week for one FTE analyst
                        type: number
                        default: 40
                      avg_cost_per_hour:
                        title: Average cost per hour for one FTE analyst
                        type: number
                        default: 60
                      human_rework_rate_pct:
                        title: Human-only rework rate (%)
                        description: Estimated share of manual investigations that
                          would require rework without Dropzone. Used as the Human-only
                          baseline for Investigation Completeness on the Value dashboard.
                        type: number
                        minimum: 0
                        maximum: 100
                        default: 18
                      soc_team_size:
                        title: SOC team size
                        description: Number of analysts on your SOC team. Used by
                          the "More Work. Same Team." Value dashboard metric.
                        type: number
                        minimum: 1
                        multipleOf: 1
                  business_hours:
                    type: object
                    title: Business Hours
                    description: Defines when alerts are considered on-hours for Value
                      dashboard coverage metrics. Weekends and observed U.S. federal
                      holidays remain off-hours.
                    properties:
                      timezone:
                        title: Time zone
                        description: Start and end times are interpreted in this time
                          zone, including daylight saving time.
                        type: string
                        oneOf:
                        - const: America/New_York
                          title: Eastern Time (New York)
                        - const: America/Chicago
                          title: Central Time (Chicago)
                        - const: America/Denver
                          title: Mountain Time (Denver)
                        - const: America/Phoenix
                          title: Arizona Time (Phoenix, no DST)
                        - const: America/Los_Angeles
                          title: Pacific Time (Los Angeles)
                        - const: America/Anchorage
                          title: Alaska Time (Anchorage)
                        - const: Pacific/Honolulu
                          title: Hawaii Time (Honolulu, no DST)
                        - const: America/Puerto_Rico
                          title: Atlantic Time (Puerto Rico, no DST)
                        - const: UTC
                          title: Coordinated Universal Time (UTC)
                        default: America/Los_Angeles
                      workday_start:
                        title: Workday starts
                        description: Alerts at or after this local time are considered
                          on-hours.
                        type: string
                        pattern: ^([01]\d|2[0-3]):[0-5]\d$
                        default: 05:00
                        ui:widget: TimeWidget
                      workday_end:
                        title: Workday ends
                        description: Alerts at or after this local time are considered
                          off-hours.
                        type: string
                        pattern: ^([01]\d|2[0-3]):[0-5]\d$
                        default: '17:00'
                        ui:widget: TimeWidget
                    ui:order:
                    - timezone
                    - workday_start
                    - workday_end
                  chatops:
                    type: object
                    title: ChatOps Configuration
                    description: Configure Slack app secrets for ChatOps commands
                      and notifications.
                    properties:
                      slack_signing_secret:
                        title: Slack Signing Secret
                        description: The signing secret from your Slack app, used
                          to verify requests from Slack.
                        type: string
                        format: password
                      slack_token:
                        title: Slack Bot Token
                        description: The bot token from your Slack app, used for making
                          API calls to Slack (e.g., xoxb-...).
                        type: string
                        format: password
                  poller_advanced_filtering:
                    type: object
                    title: Alert Advanced Filtering
                    properties:
                      paf_write_to_db:
                        type: boolean
                        default: true
                        title: Write filter uses to the database
                    allOf:
                    - if:
                        properties:
                          paf_write_to_db:
                            const: true
                      then:
                        properties:
                          paf_write_to_db_match_include:
                            type: boolean
                            default: true
                            title: Write [ match → include alert ]
                          paf_write_to_db_match_exclude:
                            type: boolean
                            default: true
                            title: Write [ match → exclude alert ]
                          paf_write_to_db_not_match:
                            type: boolean
                            default: true
                            title: Write [ not match ]
                          paf_write_to_db_error:
                            type: boolean
                            default: true
                            title: Write [ eval error ]
                          paf_write_to_db_lookback:
                            type: number
                            default: 30
                            title: Usage lookback (days)
                            description: How long to keep filter usage records in
                              the database.
                    ui:order:
                    - paf_write_to_db
                    - paf_write_to_db_match_include
                    - paf_write_to_db_match_exclude
                    - paf_write_to_db_not_match
                    - paf_write_to_db_error
                  phishing_simulation_config:
                    type: object
                    title: Phishing Simulation Configuration
                    description: Settings for identifying and ignoring phishing simulation
                      emails.
                    properties:
                      phishing_simulation_domains:
                        title: Phishing Simulation Domains
                        description: Emails whose From-header domain or any body URL
                          domain matches (or is a subdomain of) one of these will
                          be marked IGNORED without investigation.
                        type: array
                        items:
                          type: string
                        uniqueItems: true
                        default: []
                      phishing_simulation_headers:
                        title: Phishing Simulation Headers
                        description: Emails containing any of these header names will
                          be marked IGNORED without investigation as phishing simulations.
                          Header names are matched case-insensitively.
                        type: array
                        items:
                          type: string
                        uniqueItems: true
                        default: []
                  context_memory_approval:
                    type: object
                    title: Context Memory Approval
                    ui:field: HiddenField
                    properties:
                      enabled:
                        type: boolean
                        default: false
                      manual:
                        type: string
                        enum:
                        - allow
                        - require_review
                        default: allow
                      investigation_feedback:
                        type: string
                        enum:
                        - allow
                        - require_review
                        default: allow
                      integration_scans:
                        type: string
                        enum:
                        - allow
                        - require_review
                        default: require_review
                      changed:
                        type: object
                        additionalProperties:
                          type: object
                          properties:
                            by:
                              type: string
                            at:
                              type: string
                  alert_custom_fields:
                    title: Alert Custom Fields
                    type: object
                    properties:
                      enable_alert_custom_fields:
                        title: Enable Alert Custom Fields
                        type: boolean
                        default: false
                        description: Extract labeled values from each incoming alert
                          and save them with the alert.
                    allOf:
                    - if:
                        properties:
                          enable_alert_custom_fields:
                            const: true
                      then:
                        properties:
                          alert_custom_fields_entries:
                            title: Custom Fields
                            description: 'JSONPaths extracted from each incoming alert
                              and saved with a label, e.g. path `$.device.hostname`
                              with label `Hostname`. Every non-empty match is kept.
                              Paths run against the alert as received from the integration,
                              before enrichment. Prefer specific paths: recursive
                              paths like `$..hostname` scan the whole alert and slow
                              ingestion.'
                            type: array
                            maxItems: 25
                            default: []
                            items:
                              title: Custom Field
                              type: object
                              properties:
                                label:
                                  title: Label
                                  type: string
                                  minLength: 1
                                  maxLength: 128
                                path:
                                  title: Value JSONPath
                                  type: string
                                  minLength: 1
                                  maxLength: 512
                                value_template:
                                  title: Value Template (optional)
                                  description: 'Use {{value}} to insert the extracted
                                    value, like: https://example.org/items/{{value}}/detail'
                                  type: string
                                  maxLength: 1024
                                schema_keys:
                                  title: Sources (optional)
                                  description: Only extract this field from alerts
                                    that came from or were routed through any of these
                                    sources. Leave empty for all sources.
                                  type: array
                                  items:
                                    type: string
                                  uniqueItems: true
                                  ui:widget: SchemaKeysWidget
                              required:
                              - label
                              - path
                              ui:order:
                              - label
                              - path
                              - value_template
                              - schema_keys
                  advanced_settings:
                    type: object
                    title: Advanced Settings
                    properties:
                      enable_connector:
                        title: Enable Integration Connector
                        type: boolean
                        default: false
                        description: Enable for connecting to integrations behind
                          VPNs or firewalls.
                      enable_tenant_union:
                        title: Enable Multi-Tenant Map
                        type: boolean
                        default: false
                        description: Enable for vendor and/or dz-managed multi-tenant
                          integrations.
                      use_generated_alert_titles:
                        title: Display Generated Alert Titles
                        type: boolean
                        default: true
                        description: Enable to display Dropzone-generated alert titles,
                          otherwise display titles extracted from raw alert data.
                      enable_reinvestigate_btn:
                        title: Enable reinvestigation button
                        type: boolean
                        default: false
                        description: Allow users to re-run investigations for same
                          alert (counts against investigation quota)
                      advanced_alert_deduplication_settings:
                        title: Advanced Alert Deduplication Settings
                        type: object
                        properties:
                          enable_title_entity_deduplication:
                            title: Enable Title and Entity Deduplication
                            type: boolean
                            default: false
                            description: Enable to deduplicate alerts with identical
                              title and entity values within an 8 hour window.
                          enable_email_subject_sender_deduplication:
                            title: Enable Email Subject and Sender Deduplication
                            type: boolean
                            default: false
                            description: Enable to deduplicate email alerts with identical
                              subject and sender within the configured window.
                        allOf:
                        - if:
                            properties:
                              enable_title_entity_deduplication:
                                const: true
                          then:
                            properties:
                              title_entity_deduplication_settings:
                                title: Title and Entity Deduplication Settings
                                type: object
                                properties:
                                  title_entity_deduplication_minimum_entity_count:
                                    title: Minimum Entity Count
                                    description: If an alert has fewer than this many
                                      entities, it will not be considered for deduplication.
                                    type: number
                                    default: 3
                                    minimum: 2
                        - if:
                            properties:
                              enable_email_subject_sender_deduplication:
                                const: true
                          then:
                            properties:
                              email_subject_sender_deduplication_settings:
                                title: Email Subject and Sender Deduplication Settings
                                type: object
                                properties:
                                  email_subject_sender_deduplication_window_hours:
                                    title: Deduplication Window (hours)
                                    description: Email alerts with an identical subject
                                      and sender within this many hours will be deduplicated.
                                    type: number
                                    default: 4
                                    minimum: 1
                                    maximum: 8
                    allOf:
                    - if:
                        properties:
                          enable_tenant_union:
                            const: true
                      then:
                        properties:
                          enable_multi_slot:
                            title: Enable Multi-Slot Integrations
                            type: boolean
                            default: false
                            description: Enable to connect more than one instance
                              of supported integrations.
                    ui:order:
                    - enable_connector
                    - enable_reinvestigate_btn
                    - enable_tenant_union
                    - enable_multi_slot
                    - use_generated_alert_titles
                    - advanced_alert_deduplication_settings
                    - '*'
                ui:order:
                - org_info
                - dashboard_defaults
                - response_benchmarks
                - response_actions
                - time_saved
                - business_hours
                - chatops
                - poller_advanced_filtering
                - alert_custom_fields
                - phishing_simulation_config
                - advanced_settings
          description: Updated system configuration
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/context-memory:
    get:
      operationId: context_memory_list_external
      description: |
        List Context Memory Items with optional filtering, sorting, and pagination.

        Returns active and/or archived user-created context memory entries accessible to this tenant.
        Use `limit` and `offset` for pagination. Supports filtering by source type, status, tenant union,
        and free-text search.
      parameters:
      - in: query
        name: limit
        schema:
          type: integer
        description: Number of results per page
      - in: query
        name: offset
        schema:
          type: integer
        description: Number of results to skip
      - in: query
        name: search_query
        schema:
          type: string
        description: Free-text search against item content
      - in: query
        name: sort_by
        schema:
          type: string
          enum:
          - id
          - updated_at
          - usage_count
        description: 'Sort field (default: `updated_at`)'
      - in: query
        name: sort_order
        schema:
          type: string
          enum:
          - asc
          - desc
        description: 'Sort direction (default: `desc`)'
      - in: query
        name: source_types
        schema:
          type: array
          items:
            type: string
            enum:
            - chat_message
            - config_form
            - integration_scrape
            - investigation_edit
        description: Filter by source type(s). Repeatable.
      - in: query
        name: status
        schema:
          type: string
          enum:
          - active
          - all
          - inactive
        description: 'Filter by archive status (default: `all`)'
      - in: query
        name: tags
        schema:
          type: array
          items:
            type: string
        description: Filter by tag(s). Returns items that have *any* of the specified
          tags. Repeatable.
      - in: query
        name: tenant_union_id
        schema:
          type: string
        description: Filter by tenant union. Pass an integer ID to scope to a specific
          union, or the string `null` to return only untenanted items. Omit to return
          all.
      tags:
      - context-memory
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedContextMemoryList'
          description: Paginated list of Context Memory Items
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/context-memory/{item_id}:
    get:
      operationId: context_memory_retrieve_external
      description: Retrieve a single Context Memory Item by ID.
      parameters:
      - in: path
        name: item_id
        schema:
          type: integer
        description: ID of the Context Memory Item
        required: true
      tags:
      - context-memory
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContextMemoryItemToCustomer'
          description: Context Memory Item
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/context-memory/archive/{item_id}:
    post:
      operationId: context_memory_archive_create
      description: Archive a user-created Context Memory Item. Idempotent on already-archived
        items (returns 200 without error). Returns 403 if the item is not user-created.
      parameters:
      - in: path
        name: item_id
        schema:
          type: string
        required: true
      tags:
      - context-memory
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  item_id:
                    type: number
          description: Context Memory Item archived
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Context Memory Item is not user-created
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/context-memory/create:
    post:
      operationId: context_memory_create_create
      description: Create a new user Context Memory Item (+ optional tenant union
        OR tenant id/label). Prefer tenant_union_id for union-scoped context (multiple
        integration slots); tenant_id+tenant_label for upstream tenant scoping.
      tags:
      - context-memory
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                  default: Hello world
                tenant_id:
                  type: string
                  default: null
                tenant_label:
                  type: string
                  default: null
                tenant_union_id:
                  type: number
                  default: null
                tags:
                  type: array
                  items:
                    type: string
                    maxLength: 64
                  maxItems: 20
                  description: Optional free-form organizational tags.
                  default: []
      security:
      - ApiKeyAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  item_id:
                    type: number
          description: Context Memory Item created
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/context-memory/delete/{item_id}:
    delete:
      operationId: context_memory_delete_destroy
      description: Delete an existing user Context Memory Item
      parameters:
      - in: path
        name: item_id
        schema:
          type: string
        required: true
      tags:
      - context-memory
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  item_id:
                    type: number
          description: Context Memory Item deleted
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/context-memory/restore/{item_id}:
    post:
      operationId: context_memory_restore_create
      description: Restore a user-created Context Memory Item. Idempotent on active
        items (returns 200 without error). Returns 403 if the item is not user-created.
      parameters:
      - in: path
        name: item_id
        schema:
          type: string
        required: true
      tags:
      - context-memory
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  item_id:
                    type: number
          description: Context Memory Item restored
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Context Memory Item is not user-created
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/context-memory/update/{item_id}:
    put:
      operationId: context_memory_update_update
      description: Update an existing user Context Memory Item (+ optional tenant
        union OR tenant id/label). Prefer tenant_union_id for union-scoped context
        (multiple integration slots); tenant_id+tenant_label for upstream tenant scoping.
      parameters:
      - in: path
        name: item_id
        schema:
          type: string
        required: true
      tags:
      - context-memory
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                  default: Hello world
                tenant_id:
                  type: string
                  default: null
                tenant_label:
                  type: string
                  default: null
                tenant_union_id:
                  type: number
                  default: null
                tags:
                  type: array
                  items:
                    type: string
                    maxLength: 64
                  maxItems: 20
                  description: Optional free-form organizational tags. Omit to leave
                    existing tags unchanged.
                  default: []
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  item_id:
                    type: number
          description: Context Memory Item updated
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
        '409':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Invalid action taken on resource
  /app/api/v1/custom-strategies:
    get:
      operationId: custom_strategies_list_external
      description: List all custom strategies. Use is_protected filter to distinguish
        between user-created and OOTB strategies.
      parameters:
      - in: query
        name: alert_sources
        schema:
          type: array
          items:
            type: string
        description: Filter by alert sources
      - in: query
        name: attack_surfaces
        schema:
          type: array
          items:
            type: string
        description: Filter by attack surfaces
      - in: query
        name: is_archived
        schema:
          type: boolean
        description: Filter by archived status
      - in: query
        name: is_enabled
        schema:
          type: boolean
        description: Filter by enabled status
      - in: query
        name: is_protected
        schema:
          type: boolean
        description: Filter by protected status (true=OOTB, false=user-created)
      - in: query
        name: mitre_tactics
        schema:
          type: array
          items:
            type: string
        description: Filter by MITRE tactics
      - in: query
        name: search_query
        schema:
          type: string
        description: Search in strategy title and scenario
      tags:
      - custom-strategies
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DetailedCustomStrategyVersion'
          description: List of custom strategies
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    post:
      operationId: custom_strategies_create_external
      description: Create a new custom strategy
      tags:
      - custom-strategies
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                is_enabled:
                  type: boolean
                  default: false
                attack_surfaces:
                  type: array
                  items:
                    type: string
                mitre_tactics:
                  type: array
                  items:
                    type: string
                alert_sources:
                  type: array
                  items:
                    type: string
                scenario:
                  type: string
                tenant_unions:
                  type: array
                  items:
                    type: integer
                  description: Tenant union ids the strategy is scoped to; empty applies
                    it to every tenant. Omitted on update, the current value is kept.
                outcomes:
                  type: array
                  items:
                    type: object
                instructions:
                  type: array
                  items:
                    type: object
                priorities:
                  type: array
                  items:
                    type: object
              required:
              - title
      security:
      - ApiKeyAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailedCustomStrategyVersion'
          description: Custom strategy created successfully
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/custom-strategies/{strategy_id}:
    get:
      operationId: custom_strategy_retrieve_external
      description: Get a specific custom strategy by ID. Includes both user-created
        and OOTB (protected) strategies.
      parameters:
      - in: path
        name: strategy_id
        schema:
          type: integer
        required: true
      tags:
      - custom-strategies
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailedCustomStrategyVersion'
          description: Custom strategy details
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    put:
      operationId: custom_strategy_update_external
      description: Update a custom strategy (full replacement - creates new version)
      parameters:
      - in: path
        name: strategy_id
        schema:
          type: string
        required: true
      tags:
      - custom-strategies
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                is_enabled:
                  type: boolean
                attack_surfaces:
                  type: array
                  items:
                    type: string
                mitre_tactics:
                  type: array
                  items:
                    type: string
                alert_sources:
                  type: array
                  items:
                    type: string
                scenario:
                  type: string
                tenant_unions:
                  type: array
                  items:
                    type: integer
                  description: Tenant union ids the strategy is scoped to; empty applies
                    it to every tenant. Omitted on update, the current value is kept.
                outcomes:
                  type: array
                  items:
                    type: object
                instructions:
                  type: array
                  items:
                    type: object
                priorities:
                  type: array
                  items:
                    type: object
              required:
              - title
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailedCustomStrategyVersion'
          description: Strategy updated successfully
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    delete:
      operationId: custom_strategy_destroy_external
      description: Delete or archive a custom strategy (archives if referenced by
        investigations)
      parameters:
      - in: path
        name: strategy_id
        schema:
          type: string
        required: true
      tags:
      - custom-strategies
      security:
      - ApiKeyAuth: []
      responses:
        '204':
          description: Strategy deleted or archived successfully
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Cannot delete already archived strategy
  /app/api/v1/email/investigation/create:
    post:
      operationId: email_investigation_create_create
      description: Creates a new email investigation, returning the ID. Optionally
        pass tenant_union_id (multi-tenant deployments) to scope the alert to a tenant
        union.
      tags:
      - email
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: binary
                tenant_union_id:
                  type: integer
                  nullable: true
                  default: null
                origin_ticket_id:
                  type: string
                  nullable: true
                  default: null
                origin_ticket_id_label:
                  type: string
                  nullable: true
                  default: null
                origin_ticket_url:
                  type: string
                  nullable: true
                  default: null
                is_forwarded:
                  type: boolean
                  default: false
                skip_forward_unwrap:
                  type: boolean
                  default: false
      security:
      - ApiKeyAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
          description: Creation success
        '202':
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  request_id:
                    type: string
          description: Accepted but not investigated (global alert filter policy)
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/integrations:
    get:
      operationId: list_integration_types
      description: Returns all integration definitions (types) available in the system.
        Does not include instance-specific configuration.
      summary: List all available integration types
      parameters:
      - in: query
        name: categories
        schema:
          type: array
          items:
            type: string
        description: Filter by categories (can specify multiple, e.g., ?categories=siem&categories=edr)
        explode: true
        style: form
      - in: query
        name: dz_provided
        schema:
          type: boolean
        description: Filter by whether the integration type can be Dropzone-provided
      - in: query
        name: group
        schema:
          type: array
          items:
            type: string
        description: Filter by integration groups (can specify multiple, e.g., ?group=security&group=cloud)
        explode: true
        style: form
      - in: query
        name: integration_type
        schema:
          type: string
          enum:
          - core
          - interviewer
          - poller
          - remediator
        description: Filter by integration service type (core, interviewer, poller,
          remediator)
      tags:
      - integrations
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationTypesListResponse'
          description: List of all available integration types/definitions
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/integrations/{slug}:
    get:
      operationId: integration_instances_list_external
      description: List all configured instances for a specific integration.
      parameters:
      - in: path
        name: slug
        schema:
          type: string
        required: true
      - in: query
        name: tenant_union_id
        schema:
          type: integer
        description: Filter by tenant union ID
      tags:
      - integrations
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationInstancesListResponse'
          description: List of integration instances (config_data NOT included)
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    post:
      operationId: integrations_create
      description: Create a new integration instance.
      parameters:
      - in: path
        name: slug
        schema:
          type: string
        required: true
      tags:
      - integrations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntegrationInstanceSerializerToCustomerCreate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/IntegrationInstanceSerializerToCustomerCreate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/IntegrationInstanceSerializerToCustomerCreate'
        required: true
      security:
      - ApiKeyAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationSlotSerializerToCustomerFull'
          description: Successfully created integration instance
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/integrations/{slug}/{slot_uuid}:
    get:
      operationId: integration_instance_retrieve_external
      description: Get specific integration instance with full config.
      parameters:
      - in: path
        name: slot_uuid
        schema:
          type: string
          format: uuid
        required: true
      - in: path
        name: slug
        schema:
          type: string
        required: true
      tags:
      - integrations
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationSlotSerializerToCustomerFull'
          description: Full integration instance details including masked config_data
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    patch:
      operationId: integrations_partial_update
      description: Update integration instance (partial update supported).
      parameters:
      - in: path
        name: slot_uuid
        schema:
          type: string
          format: uuid
        required: true
      - in: path
        name: slug
        schema:
          type: string
        required: true
      tags:
      - integrations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedIntegrationInstanceSerializerToCustomerUpdate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedIntegrationInstanceSerializerToCustomerUpdate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedIntegrationInstanceSerializerToCustomerUpdate'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationSlotSerializerToCustomerFull'
          description: Updated integration instance
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    delete:
      operationId: integrations_destroy
      description: Delete integration instance.
      parameters:
      - in: path
        name: slot_uuid
        schema:
          type: string
          format: uuid
        required: true
      - in: path
        name: slug
        schema:
          type: string
        required: true
      tags:
      - integrations
      security:
      - ApiKeyAuth: []
      responses:
        '204':
          description: Integration instance deleted successfully
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/integrations/{slug}/{slot_uuid}/make-primary:
    post:
      operationId: integrations_make_primary_create
      description: Make this instance the primary for its tenant scope. The current
        primary becomes a secondary, so it must have an instance_label.
      parameters:
      - in: path
        name: slot_uuid
        schema:
          type: string
          format: uuid
        required: true
      - in: path
        name: slug
        schema:
          type: string
        required: true
      tags:
      - integrations
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationSlotSerializerToCustomerFull'
          description: The instance, now primary
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/integrations/{slug}/test:
    post:
      operationId: integrations_test_create
      description: Test integration configuration without saving it. Validates the
        config and tests connectivity.
      parameters:
      - in: path
        name: slug
        schema:
          type: string
        required: true
      tags:
      - integrations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntegrationInstanceSerializerToCustomerTest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/IntegrationInstanceSerializerToCustomerTest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/IntegrationInstanceSerializerToCustomerTest'
        required: true
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Test successful - returns test results
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/investigation:
    get:
      operationId: investigations_list_external
      description: |
        List investigations (with optional filtering, sorting, and search)

        Returns a paginated list of investigations. By default, only completed investigations
        (state='success') are returned. Use query parameters to filter by state, outcomes,
        priorities, date ranges, and more.
      parameters:
      - in: query
        name: alert_create_from
        schema:
          type: string
        description: Filter by alert creation time (from). ISO 8601 format
      - in: query
        name: alert_create_until
        schema:
          type: string
        description: Filter by alert creation time (until). ISO 8601 format
      - in: query
        name: alert_start_from
        schema:
          type: string
        description: Filter by alert start time (from). ISO 8601 format (e.g., 2024-01-01
          or 2024-01-01T00:00:00Z)
      - in: query
        name: alert_start_until
        schema:
          type: string
        description: Filter by alert start time (until). ISO 8601 format
      - in: query
        name: alert_tenants
        schema:
          type: array
          items:
            type: string
        description: Filter by alert tenant name (can be repeated)
      - in: query
        name: alert_types
        schema:
          type: array
          items:
            type: string
        description: Filter by alert type/handler key (can be repeated)
      - in: query
        name: assignees
        schema:
          type: array
          items:
            type: integer
        description: Filter by investigation feedback assignee user ID (can be repeated)
      - in: query
        name: attack_surfaces
        schema:
          type: array
          items:
            type: string
            enum:
            - Active Directory
            - Cloud Infrastructure
            - Endpoint
            - Identity
            - Kubernetes
            - Network
            - Phishing
            - SaaS
        description: Filter by attack surface (can be repeated)
      - in: query
        name: containment_action_statuses
        schema:
          type: array
          items:
            type: string
            enum:
            - disabled
            - failed
            - ready
            - running
            - success
            - undo_failed
            - undoing
        description: Filter by latest containment action run status per investigation
          (can be repeated)
      - in: query
        name: custom_field_values
        schema:
          type: array
          items:
            type: string
        description: Filter by a configured alert custom field value, as `<path>|||<value>`
          (can be repeated). Values of the same path match any of them; different
          paths must all match.
      - in: query
        name: direct_source_labels
        schema:
          type: array
          items:
            type: string
        description: Filter by alert source label (can be repeated)
      - in: query
        name: feedback_updated_from
        schema:
          type: string
        description: Filter by feedback last updated time (from). ISO 8601 format
      - in: query
        name: feedback_updated_until
        schema:
          type: string
        description: Filter by feedback last updated time (until). ISO 8601 format
      - in: query
        name: insight_tag_names
        schema:
          type: array
          items:
            type: string
        description: Filter by insight tag name (can be repeated)
      - in: query
        name: interview_statuses
        schema:
          type: array
          items:
            type: string
            enum:
            - active
            - approved
            - canceled
            - declined
            - failed
            - finished
            - finished_with_referral
            - pending
            - timed_out
        description: Filter by interview status (can be repeated)
      - in: query
        name: inv_complete_from
        schema:
          type: string
        description: Filter by investigation completion time (from). ISO 8601 format
      - in: query
        name: inv_complete_until
        schema:
          type: string
        description: Filter by investigation completion time (until). ISO 8601 format
      - in: query
        name: investigation_state
        schema:
          type: string
          enum:
          - error
          - loading
          - not_asked
          - success
        description: 'Filter by investigation state. Valid values: not_asked (queued),
          loading (running), success (complete), error (stopped). Defaults to ''success''.'
      - in: query
        name: light
        schema:
          type: boolean
          default: false
        description: If true, returns a lightweight response with fewer fields (no
          alert, no findings)
      - in: query
        name: limit
        schema:
          type: integer
        description: Number of results per page
      - in: query
        name: mitre_tactics
        schema:
          type: array
          items:
            type: string
            enum:
            - Collection
            - Command and Control
            - Credential Access
            - Defense Evasion
            - Discovery
            - Execution
            - Exfiltration
            - Impact
            - Initial Access
            - Lateral Movement
            - Persistence
            - Privilege Escalation
        description: Filter by MITRE ATT&CK tactic (can be repeated)
      - in: query
        name: offset
        schema:
          type: integer
        description: Number of results to skip
      - in: query
        name: outcomes
        schema:
          type: array
          items:
            type: string
            enum:
            - COMPLETED_BREACHED_CONFIRMED
            - COMPLETED_BREACHED_SUSPICIOUS
            - COMPLETED_FALSE_ALERT
            - IGNORED
            - INCOMPLETE
        description: Filter by investigation outcome/conclusion (can be repeated)
      - in: query
        name: priorities
        schema:
          type: array
          items:
            type: string
            enum:
            - informational
            - notable
            - urgent
        description: Filter by investigation priority (can be repeated)
      - in: query
        name: priority_statuses
        schema:
          type: array
          items:
            type: string
        description: Filter by priority status (can be repeated)
      - in: query
        name: search
        schema:
          type: string
        description: Free-text search across investigation fields
      - in: query
        name: sort_dir
        schema:
          type: string
          enum:
          - asc
          - desc
        description: Sort direction. Defaults to 'desc'. 'assigned_to_me' and 'unassigned'
          always put their group first.
      - in: query
        name: sort_type
        schema:
          type: string
          enum:
          - activity
          - alert_create
          - alert_source
          - alert_title
          - alert_type
          - assigned_to_me
          - assignee
          - feedback_status
          - investigation_create
          - outcome
          - priority_status
          - stopped_reason
          - unassigned
        description: Sort field. Defaults to 'alert_create'. 'feedback_status' asc
          follows New, In Progress, On Hold, Closed. 'assignee' sorts by display name.
          'assigned_to_me' puts the API-key owner first; 'unassigned' puts investigations
          without an assignee first.
      - in: query
        name: stopped_reasons
        schema:
          type: array
          items:
            type: string
            enum:
            - CANCEL_MANUAL
            - CANCEL_THRESHOLD
            - ERROR
        description: Filter by stopped reason for error/canceled investigations (can
          be repeated)
      - in: query
        name: tenant_id
        schema:
          type: string
        description: Filter by tenant ID
      - in: query
        name: tenant_integration_key
        schema:
          type: string
        description: Filter by tenant integration key
      - in: query
        name: ticket_id
        schema:
          type: string
        description: Exact, case-insensitive match on the vendor alert/ticket ID.
          Matches either the alert's origin ticket ID or its display label; surrounding
          whitespace is ignored. Unlike `search`, substrings do not match. May return
          multiple investigations (e.g. reinvestigations).
      - in: query
        name: user_statuses
        schema:
          type: array
          items:
            type: string
            enum:
            - dz_closed
            - dz_in_progress
            - dz_new
            - dz_on_hold
        description: Filter by user feedback status (can be repeated)
      tags:
      - investigation
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedInvestigationList'
          description: |
            <strong>Paginated list of investigations</strong>
            <br><br>
            Returns a paginated list of investigations. By default, only completed investigations
            (state='success') are returned. Use query parameters to filter by state, outcomes,
            priorities, date ranges, and more.
            <br><br>
            Use <code>next</code> and <code>previous</code>
            URLs in the response for easy page navigation.
            <br><br>
            If <code>light=true</code>, returns a subset of fields (InvestigationLight schema).
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
  /app/api/v1/investigation-bulk-feedback:
    patch:
      operationId: investigation_bulk_feedback_partial_update
      description: |
        Bulk update investigation feedback
        <br>
        <br>
        Fields omitted from <code>feedback</code> are left unchanged.
        Set a nullable field to <code>null</code> to clear it.
        <br>
        <br>
        <code>feedback.status</code> options:
        <ul>
        <li>New = <code>dz_new</code></li> <li>In Progress = <code>dz_in_progress</code></li> <li>On Hold = <code>dz_on_hold</code></li> <li>Closed = <code>dz_closed</code></li>
        </ul>
        <br>
        <code>feedback.outcome</code> options:
        <ul>
        <li>Malicious = <code>COMPLETED_BREACHED_CONFIRMED</code></li> <li>Suspicious = <code>COMPLETED_BREACHED_SUSPICIOUS</code></li> <li>Benign = <code>COMPLETED_FALSE_ALERT</code></li> <li>Inconclusive = <code>INCOMPLETE</code></li> <li>Ignored = <code>IGNORED</code></li>
        </ul>
        <code>feedback.priority</code> options:
        <ul>
        <li>Informational = <code>informational</code></li> <li>Notable = <code>notable</code></li> <li>Urgent = <code>urgent</code></li>
        </ul>
        <code>feedback.assignee</code> accepts the user's integer <code>id</code> (<code>user.id</code>).
      tags:
      - investigation-feedback
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedBulkInvestigationFeedbackRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedBulkInvestigationFeedbackRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedBulkInvestigationFeedbackRequest'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  investigation_id:
                    type: number
          description: Feedback updated
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/investigation-user-notes/{investigation_id}/create:
    post:
      operationId: investigation_user_notes_create_create
      description: Add a new investigation note
      parameters:
      - in: path
        name: investigation_id
        schema:
          type: integer
        required: true
      tags:
      - investigation-user-notes
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvestigationNoteNested'
          description: New investigation note
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/investigation-user-notes/{investigation_id}/list:
    get:
      operationId: investigation_user_notes_list_retrieve
      description: List user notes for an investigation
      parameters:
      - in: path
        name: investigation_id
        schema:
          type: integer
        required: true
      tags:
      - investigation-user-notes
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/InvestigationNoteNested'
          description: Investigation user notes
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/investigation-user-notes/{investigation_note_id}/delete:
    delete:
      operationId: investigation_user_notes_delete_destroy
      description: Delete an investigation note
      parameters:
      - in: path
        name: investigation_note_id
        schema:
          type: integer
        required: true
      tags:
      - investigation-user-notes
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Delete success
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/investigation-user-notes/{investigation_note_id}/update:
    patch:
      operationId: investigation_user_notes_update_partial_update
      description: Update an investigation note
      parameters:
      - in: path
        name: investigation_note_id
        schema:
          type: integer
        required: true
      tags:
      - investigation-user-notes
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvestigationNoteNested'
          description: Updated investigation note
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/investigation/{investigation_id}:
    get:
      operationId: investigation_retrieve_external
      description: Returns an alert investigation
      parameters:
      - in: path
        name: investigation_id
        schema:
          type: string
        required: true
      - in: query
        name: light
        schema:
          type: boolean
          default: false
        description: If true, returns a lightweight response with fewer fields (no
          alert, no findings)
      tags:
      - investigation
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Investigation'
          description: |
            Investigation data object. For progress: <code>investigation.status=</code>
            <ul>
              <li>
                  <code>not_asked</code> : queued
              </li>
              <li>
                  <code>loading</code> : running AI analyst
              </li>
              <li>
                  <code>success</code> : AI analyst finished with result
              </li>
              <li>
                  <code>error</code> : AI analyst finished with error
                  — See <code>investigation.error_msg</code>
              </li>
            </ul>
            <br><br>
            If <code>light=true</code>, returns a subset of fields (InvestigationLight schema).
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/investigation/{investigation_id}/evidence-data/{evidence_data_id}:
    get:
      operationId: investigation_evidence_data_retrieve
      description: |
        Returns the requested evidence data for a specific investigation.
      parameters:
      - in: path
        name: evidence_data_id
        schema:
          type: integer
        description: The evidence data ID
        required: true
      - in: path
        name: investigation_id
        schema:
          type: integer
        description: The investigation ID
        required: true
      tags:
      - investigation
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvidenceData'
          description: Evidence data object
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/investigation/{investigation_id}/feedback:
    patch:
      operationId: investigation_feedback_partial_update
      description: |
        Update feedback for a single investigation
        <br>
        <br>
        Fields omitted from <code>feedback</code> are left unchanged.
        Set a nullable field to <code>null</code> to clear it.
        <br>
        <br>
        <code>feedback.status</code> options:
        <ul>
        <li>New = <code>dz_new</code></li> <li>In Progress = <code>dz_in_progress</code></li> <li>On Hold = <code>dz_on_hold</code></li> <li>Closed = <code>dz_closed</code></li>
        </ul>
        <br>
        <code>feedback.outcome</code> options:
        <ul>
        <li>Malicious = <code>COMPLETED_BREACHED_CONFIRMED</code></li> <li>Suspicious = <code>COMPLETED_BREACHED_SUSPICIOUS</code></li> <li>Benign = <code>COMPLETED_FALSE_ALERT</code></li> <li>Inconclusive = <code>INCOMPLETE</code></li> <li>Ignored = <code>IGNORED</code></li>
        </ul>
        <code>feedback.priority</code> options:
        <ul>
        <li>Informational = <code>informational</code></li> <li>Notable = <code>notable</code></li> <li>Urgent = <code>urgent</code></li>
        </ul>
        <code>feedback.assignee</code> accepts the user's integer <code>id</code> (<code>user.id</code>).
      parameters:
      - in: path
        name: investigation_id
        schema:
          type: integer
        description: The investigation ID
        required: true
      tags:
      - investigation-feedback
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedInvestigationFeedbackRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedInvestigationFeedbackRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedInvestigationFeedbackRequest'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                description: The updated investigation feedback
          description: Feedback updated
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/investigation/{investigation_id}/queue-priority:
    post:
      operationId: investigation_queue_priority_create
      description: Set queue_priority for a queued investigation. Omit queue_priority
        from the body (or pass null) to bump to top; pass 0 to return to default queue
        order.
      parameters:
      - in: path
        name: investigation_id
        schema:
          type: integer
        description: The investigation ID
        required: true
      tags:
      - investigation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                queue_priority:
                  type: number
                  nullable: true
                  description: Priority value. Omit or null to bump to top (server
                    computes max + gap), 0 to return to default queue order.
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    description: The investigation ID
                  queue_priority:
                    type: number
                    description: The new queue_priority value
          description: Priority updated
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/investigation/create:
    post:
      operationId: investigation_create_create
      description: |
        Creates a new alert investigation, returning <code>investigation_id</code>
        <br><br>
        <i>Returns existing id if alert already exists (unless <code>force_reinvestigation=True</code>)</i>
        <br><br>
        <strong>Then:</strong> Use <code>GET /app/api/v1/investigation/{investigation_id}</code> for updates
        <br><br>
        <i>Returns 503 with <code>retryable: true</code> and a <code>Retry-After</code> header when the alert's
        enrichment data has not arrived from the vendor yet (for example, a Microsoft Sentinel incident sent
        before its alerts are queryable). Retry the same request after <code>Retry-After</code> seconds. Once the
        vendor's window has passed, the response is a final 200, 201 or 422.</i>
      tags:
      - investigation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                schema_key:
                  type: string
                raw_alert_content:
                  type: object
                force_reinvestigation:
                  type: boolean
                  default: false
                tenant_union_id:
                  type: number
                  nullable: true
                  default: null
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  investigation_id:
                    type: number
          description: Existing investigation found
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  investigation_id:
                    type: number
          description: New investigation created
        '202':
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  request_id:
                    type: string
          description: Accepted but not investigated (global alert filter policy)
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvestigationCreateServiceUnavailable'
          description: Dropzone is upgrading, a service is temporarily unavailable,
            or the alert's enrichment data has not arrived yet (retryable is true).
            Retry after the number of seconds in the Retry-After header.
        '422':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
                  skip_reason:
                    type: string
          description: Alert skipped due to missing data
  /app/api/v1/investigation/create/custom:
    post:
      operationId: investigation_create_custom_create
      description: |
        Request body = arbitrary alert JSON to be parsed & investigated.
        <br><br>
        The system uses AI to extract metadata (title, timestamps, ticket info, etc.) from the alert JSON you provide.
        You can optionally include a <code>dz_metadata</code> object to override or supplement the AI-extracted values.
        <br><br>
        <strong>Optional <code>dz_metadata</code> fields:</strong>
        <table style="border-collapse: collapse; margin-top: 8px;">
            <tr><th style="text-align: left; padding: 4px 12px 4px 0;">Field</th><th style="text-align: left; padding: 4px 12px;">Type</th><th style="text-align: left; padding: 4px 12px;">Description</th></tr>
            <tr><td style="padding: 4px 12px 4px 0;"><code>title</code></td><td style="padding: 4px 12px;">string</td><td style="padding: 4px 12px;">Override the AI-generated alert title</td></tr>
            <tr><td style="padding: 4px 12px 4px 0;"><code>alert_type</code></td><td style="padding: 4px 12px;">string</td><td style="padding: 4px 12px;">Override the AI-detected alert type</td></tr>
            <tr><td style="padding: 4px 12px 4px 0;"><code>coalesce_key</code></td><td style="padding: 4px 12px;">string</td><td style="padding: 4px 12px;">Key for grouping duplicate alerts (default: hash of alert content)</td></tr>
            <tr><td style="padding: 4px 12px 4px 0;"><code>create_time</code></td><td style="padding: 4px 12px;">string (ISO 8601)</td><td style="padding: 4px 12px;">Alert creation timestamp (default: current time)</td></tr>
            <tr><td style="padding: 4px 12px 4px 0;"><code>start_time</code></td><td style="padding: 4px 12px;">string (ISO 8601)</td><td style="padding: 4px 12px;">Alert start timestamp</td></tr>
            <tr><td style="padding: 4px 12px 4px 0;"><code>origin_ticket_id</code></td><td style="padding: 4px 12px;">string</td><td style="padding: 4px 12px;">Ticket/alert ID from the originating system</td></tr>
            <tr><td style="padding: 4px 12px 4px 0;"><code>origin_ticket_url</code></td><td style="padding: 4px 12px;">string</td><td style="padding: 4px 12px;">URL to the ticket/alert in the originating system</td></tr>
            <tr><td style="padding: 4px 12px 4px 0;"><code>force_investigate</code></td><td style="padding: 4px 12px;">boolean</td><td style="padding: 4px 12px;">If true, bypass the "not a valid security alert" classification and investigate anyway</td></tr>
        </table>
        <br>
        Response = <code>investigation_id</code> if an investigation is created or found,
        or <code>message</code> (and optionally <code>skip_reason</code>) if the alert was accepted but not investigated
        <br><br>
        <i>Returns existing id if alert already exists (unless <code>?force_reinvestigation=True</code>)</i>
        <br><br>
        <strong>Then:</strong> Use <code>GET /app/api/v1/investigation/{investigation_id}</code> for updates
      parameters:
      - in: query
        name: force_reinvestigation
        schema:
          type: boolean
        description: Force reinvestigation
      - in: query
        name: tenant_union_id
        schema:
          type: integer
        description: Tenant union ID
      tags:
      - investigation
      requestBody:
        content:
          application/json:
            schema:
              type: object
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  investigation_id:
                    type: number
          description: Existing investigation found
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  investigation_id:
                    type: number
          description: New investigation created
        '202':
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  skip_reason:
                    type: string
                  request_id:
                    type: string
          description: Accepted but not investigated (classifier judged not a security
            alert, or global alert filter policy)
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
        '413':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
                  skip_reason:
                    type: string
          description: Content Too Large
  /app/api/v1/metrics/mttx:
    get:
      operationId: metrics_mttx_retrieve
      description: |
        System-level MTTX metrics (MTTC, MTTD, MTTP, MTTI) with overall totals and per alert-source breakdowns.
        <br><br>
        Uses the same investigation filter query parameters as <code>GET /app/api/v1/investigation</code>.
      parameters:
      - in: query
        name: alert_create_from
        schema:
          type: string
        description: Filter by alert creation time (from). ISO 8601 format
      - in: query
        name: alert_create_until
        schema:
          type: string
        description: Filter by alert creation time (until). ISO 8601 format
      - in: query
        name: alert_start_from
        schema:
          type: string
        description: Filter by alert start time (from). ISO 8601 format (e.g., 2024-01-01
          or 2024-01-01T00:00:00Z)
      - in: query
        name: alert_start_until
        schema:
          type: string
        description: Filter by alert start time (until). ISO 8601 format
      - in: query
        name: alert_tenants
        schema:
          type: array
          items:
            type: string
        description: Filter by alert tenant name (can be repeated)
      - in: query
        name: alert_types
        schema:
          type: array
          items:
            type: string
        description: Filter by alert type/handler key (can be repeated)
      - in: query
        name: assignees
        schema:
          type: array
          items:
            type: integer
        description: Filter by investigation feedback assignee user ID (can be repeated)
      - in: query
        name: attack_surfaces
        schema:
          type: array
          items:
            type: string
            enum:
            - Active Directory
            - Cloud Infrastructure
            - Endpoint
            - Identity
            - Kubernetes
            - Network
            - Phishing
            - SaaS
        description: Filter by attack surface (can be repeated)
      - in: query
        name: containment_action_statuses
        schema:
          type: array
          items:
            type: string
            enum:
            - disabled
            - failed
            - ready
            - running
            - success
            - undo_failed
            - undoing
        description: Filter by latest containment action run status per investigation
          (can be repeated)
      - in: query
        name: custom_field_values
        schema:
          type: array
          items:
            type: string
        description: Filter by a configured alert custom field value, as `<path>|||<value>`
          (can be repeated). Values of the same path match any of them; different
          paths must all match.
      - in: query
        name: direct_source_labels
        schema:
          type: array
          items:
            type: string
        description: Filter by alert source label (can be repeated)
      - in: query
        name: feedback_updated_from
        schema:
          type: string
        description: Filter by feedback last updated time (from). ISO 8601 format
      - in: query
        name: feedback_updated_until
        schema:
          type: string
        description: Filter by feedback last updated time (until). ISO 8601 format
      - in: query
        name: insight_tag_names
        schema:
          type: array
          items:
            type: string
        description: Filter by insight tag name (can be repeated)
      - in: query
        name: interview_statuses
        schema:
          type: array
          items:
            type: string
            enum:
            - active
            - approved
            - canceled
            - declined
            - failed
            - finished
            - finished_with_referral
            - pending
            - timed_out
        description: Filter by interview status (can be repeated)
      - in: query
        name: inv_complete_from
        schema:
          type: string
        description: Filter by investigation completion time (from). ISO 8601 format
      - in: query
        name: inv_complete_until
        schema:
          type: string
        description: Filter by investigation completion time (until). ISO 8601 format
      - in: query
        name: mitre_tactics
        schema:
          type: array
          items:
            type: string
            enum:
            - Collection
            - Command and Control
            - Credential Access
            - Defense Evasion
            - Discovery
            - Execution
            - Exfiltration
            - Impact
            - Initial Access
            - Lateral Movement
            - Persistence
            - Privilege Escalation
        description: Filter by MITRE ATT&CK tactic (can be repeated)
      - in: query
        name: outcomes
        schema:
          type: array
          items:
            type: string
            enum:
            - COMPLETED_BREACHED_CONFIRMED
            - COMPLETED_BREACHED_SUSPICIOUS
            - COMPLETED_FALSE_ALERT
            - IGNORED
            - INCOMPLETE
        description: Filter by investigation outcome/conclusion (can be repeated)
      - in: query
        name: priorities
        schema:
          type: array
          items:
            type: string
            enum:
            - informational
            - notable
            - urgent
        description: Filter by investigation priority (can be repeated)
      - in: query
        name: priority_statuses
        schema:
          type: array
          items:
            type: string
        description: Filter by priority status (can be repeated)
      - in: query
        name: search
        schema:
          type: string
        description: Free-text search across investigation fields
      - in: query
        name: stopped_reasons
        schema:
          type: array
          items:
            type: string
            enum:
            - CANCEL_MANUAL
            - CANCEL_THRESHOLD
            - ERROR
        description: Filter by stopped reason for error/canceled investigations (can
          be repeated)
      - in: query
        name: tenant_id
        schema:
          type: string
        description: Filter by tenant ID
      - in: query
        name: tenant_integration_key
        schema:
          type: string
        description: Filter by tenant integration key
      - in: query
        name: ticket_id
        schema:
          type: string
        description: Exact, case-insensitive match on the vendor alert/ticket ID.
          Matches either the alert's origin ticket ID or its display label; surrounding
          whitespace is ignored. Unlike `search`, substrings do not match. May return
          multiple investigations (e.g. reinvestigations).
      - in: query
        name: user_statuses
        schema:
          type: array
          items:
            type: string
            enum:
            - dz_closed
            - dz_in_progress
            - dz_new
            - dz_on_hold
        description: Filter by user feedback status (can be repeated)
      tags:
      - metrics
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MttxResponse'
          description: MTTX aggregate metrics
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/metrics/mttx/investigations:
    get:
      operationId: metrics_mttx_investigations_retrieve
      description: |
        Per-investigation MTTD, MTTP, and MTTI in seconds (float), keyed by investigation id.
        <br><br>
        Uses the same investigation filter query parameters as <code>GET /app/api/v1/investigation</code>.
      parameters:
      - in: query
        name: alert_create_from
        schema:
          type: string
        description: Filter by alert creation time (from). ISO 8601 format
      - in: query
        name: alert_create_until
        schema:
          type: string
        description: Filter by alert creation time (until). ISO 8601 format
      - in: query
        name: alert_start_from
        schema:
          type: string
        description: Filter by alert start time (from). ISO 8601 format (e.g., 2024-01-01
          or 2024-01-01T00:00:00Z)
      - in: query
        name: alert_start_until
        schema:
          type: string
        description: Filter by alert start time (until). ISO 8601 format
      - in: query
        name: alert_tenants
        schema:
          type: array
          items:
            type: string
        description: Filter by alert tenant name (can be repeated)
      - in: query
        name: alert_types
        schema:
          type: array
          items:
            type: string
        description: Filter by alert type/handler key (can be repeated)
      - in: query
        name: assignees
        schema:
          type: array
          items:
            type: integer
        description: Filter by investigation feedback assignee user ID (can be repeated)
      - in: query
        name: attack_surfaces
        schema:
          type: array
          items:
            type: string
            enum:
            - Active Directory
            - Cloud Infrastructure
            - Endpoint
            - Identity
            - Kubernetes
            - Network
            - Phishing
            - SaaS
        description: Filter by attack surface (can be repeated)
      - in: query
        name: containment_action_statuses
        schema:
          type: array
          items:
            type: string
            enum:
            - disabled
            - failed
            - ready
            - running
            - success
            - undo_failed
            - undoing
        description: Filter by latest containment action run status per investigation
          (can be repeated)
      - in: query
        name: custom_field_values
        schema:
          type: array
          items:
            type: string
        description: Filter by a configured alert custom field value, as `<path>|||<value>`
          (can be repeated). Values of the same path match any of them; different
          paths must all match.
      - in: query
        name: direct_source_labels
        schema:
          type: array
          items:
            type: string
        description: Filter by alert source label (can be repeated)
      - in: query
        name: feedback_updated_from
        schema:
          type: string
        description: Filter by feedback last updated time (from). ISO 8601 format
      - in: query
        name: feedback_updated_until
        schema:
          type: string
        description: Filter by feedback last updated time (until). ISO 8601 format
      - in: query
        name: insight_tag_names
        schema:
          type: array
          items:
            type: string
        description: Filter by insight tag name (can be repeated)
      - in: query
        name: interview_statuses
        schema:
          type: array
          items:
            type: string
            enum:
            - active
            - approved
            - canceled
            - declined
            - failed
            - finished
            - finished_with_referral
            - pending
            - timed_out
        description: Filter by interview status (can be repeated)
      - in: query
        name: inv_complete_from
        schema:
          type: string
        description: Filter by investigation completion time (from). ISO 8601 format
      - in: query
        name: inv_complete_until
        schema:
          type: string
        description: Filter by investigation completion time (until). ISO 8601 format
      - in: query
        name: mitre_tactics
        schema:
          type: array
          items:
            type: string
            enum:
            - Collection
            - Command and Control
            - Credential Access
            - Defense Evasion
            - Discovery
            - Execution
            - Exfiltration
            - Impact
            - Initial Access
            - Lateral Movement
            - Persistence
            - Privilege Escalation
        description: Filter by MITRE ATT&CK tactic (can be repeated)
      - in: query
        name: outcomes
        schema:
          type: array
          items:
            type: string
            enum:
            - COMPLETED_BREACHED_CONFIRMED
            - COMPLETED_BREACHED_SUSPICIOUS
            - COMPLETED_FALSE_ALERT
            - IGNORED
            - INCOMPLETE
        description: Filter by investigation outcome/conclusion (can be repeated)
      - in: query
        name: priorities
        schema:
          type: array
          items:
            type: string
            enum:
            - informational
            - notable
            - urgent
        description: Filter by investigation priority (can be repeated)
      - in: query
        name: priority_statuses
        schema:
          type: array
          items:
            type: string
        description: Filter by priority status (can be repeated)
      - in: query
        name: search
        schema:
          type: string
        description: Free-text search across investigation fields
      - in: query
        name: stopped_reasons
        schema:
          type: array
          items:
            type: string
            enum:
            - CANCEL_MANUAL
            - CANCEL_THRESHOLD
            - ERROR
        description: Filter by stopped reason for error/canceled investigations (can
          be repeated)
      - in: query
        name: tenant_id
        schema:
          type: string
        description: Filter by tenant ID
      - in: query
        name: tenant_integration_key
        schema:
          type: string
        description: Filter by tenant integration key
      - in: query
        name: ticket_id
        schema:
          type: string
        description: Exact, case-insensitive match on the vendor alert/ticket ID.
          Matches either the alert's origin ticket ID or its display label; surrounding
          whitespace is ignored. Unlike `search`, substrings do not match. May return
          multiple investigations (e.g. reinvestigations).
      - in: query
        name: user_statuses
        schema:
          type: array
          items:
            type: string
            enum:
            - dz_closed
            - dz_in_progress
            - dz_new
            - dz_on_hold
        description: Filter by user feedback status (can be repeated)
      tags:
      - metrics
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MttxPerInvestigationResponse'
          description: Per-investigation MTTX (seconds)
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/ping:
    get:
      operationId: ping_retrieve
      description: Tests API key, returns 200 if successful
      tags:
      - ping
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  server_root:
                    type: string
          description: Ping/auth success
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/response-actions:
    get:
      operationId: response_actions_list_external
      description: List all response actions
      parameters:
      - in: query
        name: is_archived
        schema:
          type: boolean
        description: 'Filter by archived status (default: false)'
      tags:
      - response-actions
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ResponseScriptSerializerForUI'
          description: List of response actions
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    post:
      operationId: response_actions_create_external
      description: Create a new response action
      tags:
      - response-actions
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                display_name:
                  type: string
                trigger_def_uuid:
                  type: string
                  format: uuid
                code:
                  type: string
              required:
              - display_name
              - trigger_def_uuid
      security:
      - ApiKeyAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseScriptSerializerForUI'
          description: Response action created successfully
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/response-actions/{script_id}:
    get:
      operationId: response_action_retrieve_external
      description: Get response action details with version and run counts
      parameters:
      - in: path
        name: script_id
        schema:
          type: integer
        required: true
      tags:
      - response-actions
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  counts:
                    type: object
                    properties:
                      version:
                        type: integer
                      run:
                        type: integer
                  latest:
                    type: object
                    properties:
                      version:
                        type: object
                      run:
                        type: object
          description: Response action details with counts and latest version/run
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    patch:
      operationId: response_action_update_external
      description: Update response action properties
      parameters:
      - in: path
        name: script_id
        schema:
          type: integer
        required: true
      tags:
      - response-actions
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                display_name:
                  type: string
                trigger_def_uuid:
                  type: string
                  format: uuid
                is_enabled:
                  type: boolean
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Response action updated successfully
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request or cannot update archived action
    delete:
      operationId: response_action_destroy_external
      description: Archive (soft delete) a response action. Deletes unreferenced versions.
      parameters:
      - in: path
        name: script_id
        schema:
          type: integer
        required: true
      tags:
      - response-actions
      security:
      - ApiKeyAuth: []
      responses:
        '204':
          description: Response action archived successfully
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/response-actions/{script_id}/runs:
    get:
      operationId: response_actions_runs_retrieve
      description: List all runs for a response action
      parameters:
      - in: path
        name: script_id
        schema:
          type: integer
        required: true
      tags:
      - response-actions
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ResponseScriptRunSerializerForUI'
          description: List of response action runs
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/response-actions/secrets:
    get:
      operationId: response_action_secrets_list_external
      description: List all response action secrets (metadata only, values are not
        exposed)
      tags:
      - response-actions
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ResponseScriptSecret'
          description: List of secrets
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    post:
      operationId: response_action_secrets_create_external
      description: Create a new response action secret
      tags:
      - response-actions
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                key:
                  type: string
                  description: Secret key/name (must be unique)
                value:
                  type: string
                  description: Secret value
              required:
              - key
              - value
      security:
      - ApiKeyAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseScriptSecret'
          description: Secret created successfully
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/response-actions/secrets/{secret_id}:
    get:
      operationId: response_action_secret_retrieve_external
      description: Get a response action secret by ID (metadata only, value is not
        exposed)
      parameters:
      - in: path
        name: secret_id
        schema:
          type: integer
        required: true
      tags:
      - response-actions
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseScriptSecret'
          description: Secret details
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    patch:
      operationId: response_action_secret_update_external
      description: Update a response action secret
      parameters:
      - in: path
        name: secret_id
        schema:
          type: integer
        required: true
      tags:
      - response-actions
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                key:
                  type: string
                  description: New secret key/name
                value:
                  type: string
                  description: New secret value
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseScriptSecret'
          description: Secret updated successfully
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    delete:
      operationId: response_action_secret_destroy_external
      description: Delete a response action secret
      parameters:
      - in: path
        name: secret_id
        schema:
          type: integer
        required: true
      tags:
      - response-actions
      security:
      - ApiKeyAuth: []
      responses:
        '204':
          description: Secret deleted successfully
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/response-actions/test:
    post:
      operationId: response_actions_test_create
      description: Execute a test run of a response action script without saving to
        database. Useful for testing and debugging scripts before deployment.
      tags:
      - response-actions
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                script_code:
                  type: string
                  description: The Python code to execute
                trigger_args:
                  type: object
                  description: Arguments to pass to the script (depends on trigger
                    type)
              required:
              - script_code
              - trigger_args
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Execution status
                  stdout:
                    type: string
                    description: Standard output from script execution
                  stderr:
                    type: string
                    description: Standard error from script execution
          description: Test run completed successfully
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
        '422':
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  stdout:
                    type: string
                  stderr:
                    type: string
          description: Script execution failed
  /app/api/v1/response-actions/triggers:
    get:
      operationId: response_actions_triggers_retrieve
      description: List available response triggers for action creation
      tags:
      - response-actions
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ResponseTriggerDef'
          description: List of available triggers
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/roles:
    get:
      operationId: roles_list_external
      description: |-
        List every role on this platform, highest first, each with its value and display name.

        Unless multi-role is enabled on this instance, only `admin`, `member` and
        `restricted-read-only` are listed. A role listed here is not necessarily one the users
        routes accept on this instance: `GET /app/api/v1/roles/assignable` lists those.
      parameters:
      - in: query
        name: limit
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 50
      - in: query
        name: offset
        schema:
          type: integer
          minimum: 0
          default: 0
      tags:
      - roles
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRoles'
          description: Paginated role list
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/roles/assignable:
    get:
      operationId: roles_assignable_external
      description: |-
        List the roles the users routes accept in `roles` on this instance, highest first, each with
        its value and display name.

        Empty when the instance's identity provider owns role assignment.
      parameters:
      - in: query
        name: limit
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 50
      - in: query
        name: offset
        schema:
          type: integer
          minimum: 0
          default: 0
      tags:
      - roles
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRoles'
          description: Paginated role list
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/system-events/list:
    get:
      operationId: system_events_list_retrieve
      description: List system events for each trigger run batch
      parameters:
      - in: query
        name: event_from
        schema:
          type: string
        description: Filter by event date from (ISO format)
      - in: query
        name: event_name
        schema:
          type: string
        description: Filter by event name
      - in: query
        name: event_until
        schema:
          type: string
        description: Filter by event date until (ISO format)
      - in: query
        name: integration_slug
        schema:
          type: string
        description: Filter by integration slug
      - in: query
        name: investigation_id
        schema:
          type: integer
        description: Filter by investigation ID
      - in: query
        name: limit
        schema:
          type: integer
        description: Number of results per page
      - in: query
        name: offset
        schema:
          type: integer
        description: Number of results to skip
      - in: query
        name: search
        schema:
          type: string
        description: Search in trigger arguments
      - in: query
        name: user_id
        schema:
          type: integer
        description: Filter by user ID
      tags:
      - system-events
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        event_date:
                          type: string
                        event_name:
                          type: string
                        original_metadata:
                          type: object
                        enriched_context:
                          type: object
                        enriched_context_date:
                          type: string
          description: System events list
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/threat-intel/collections:
    get:
      operationId: threat_intel_list_external
      description: List Custom Threat Collections.
      tags:
      - Custom Threat Collections
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThreatIntelCollectionList'
          description: List of Custom Threat Collections
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    post:
      operationId: threat_intel_create_external
      description: |
        Create a new Custom Threat Collection.

        **Collection Name:**
        If omitted and a file is provided, the filename (without extension) will be used. If no file is provided, collection_name is required.**Supported Formats:**
        - Single STIX JSON file (.json)
        - Compressed tar/zip archives (.tar.gz, .tgz, .zip) containing multiple STIX files

        **Size Limits:**
        - File size: 100.0MB max
      tags:
      - Custom Threat Collections
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: STIX JSON file or compressed tar archive
                collection_name:
                  type: string
                  description: Collection name (optional, defaults to filename)
                  example: My Threat Feed
                expires_at:
                  type: string
                  format: date-time
                  nullable: true
                  description: Optional. When set, internal threat intel search excludes
                    this collection after this date. Omit or null for no expiry.
      security:
      - ApiKeyAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportResult'
          description: Successfully processed
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - missing file, invalid collection name, or invalid
            MIME type
        '409':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Conflict - duplicate file (already uploaded in last 5 minutes)
            or collection limit exceeded
        '413':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: File too large - exceeds 100.0MB
        '507':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Insufficient storage space on server
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Internal server error - file processing failed or file save
            failed during async upload
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/threat-intel/collections/{collection_id}:
    get:
      operationId: threat_intel_retrieve_external
      description: Get details for a specific Custom Threat Collection.
      parameters:
      - in: path
        name: collection_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Custom Threat Collections
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThreatIntelCollection'
          description: 'Collection details. The file_info field is a dictionary keyed
            by filename. Each value is either a SingleFileInfo (for single files)
            or ArchiveFileInfo (for archives), determined by the ''type'' field. All
            file types include indicators_skipped count. ArchiveFileInfo includes
            detailed filename tracking: files_parsed (successfully parsed), files_errored
            (had errors), files_skipped (skipped entirely), and files_warning (partial
            success - imported some indicators but also had errors or skipped indicators).'
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
    patch:
      operationId: threat_intel_patch_external
      description: Update a Custom Threat Collection
      parameters:
      - in: path
        name: collection_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Custom Threat Collections
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedThreatIntelCollectionCoreSettings'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedThreatIntelCollectionCoreSettings'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedThreatIntelCollectionCoreSettings'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThreatIntelCollection'
          description: Updated collection
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Collection not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    delete:
      operationId: threat_intel_destroy_external
      description: Delete a Custom Threat Collection
      parameters:
      - in: path
        name: collection_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Custom Threat Collections
      security:
      - ApiKeyAuth: []
      responses:
        '204':
          description: Collection deleted successfully
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Collection not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/threat-intel/collections/{collection_id}/files:
    put:
      operationId: threat_intel_files_replace_external
      description: |
        Replace all files in a Custom Threat Collection with a new STIX 2.x file or compressed archive.

        This endpoint replaces all existing collection content with the uploaded data.

        **Supported Formats:**
        - Single STIX JSON file (.json)
        - Compressed tar archives (.tar.gz, .tgz) containing multiple STIX files

        **Size Limits:**
        - File size: 100.0MB max
      parameters:
      - in: path
        name: collection_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Custom Threat Collections
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: STIX JSON file or compressed tar archive
              required:
              - file
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportResult'
          description: Successfully processed
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - missing file or invalid MIME type
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Collection not found
        '413':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: File too large - exceeds 100.0MB
        '507':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Insufficient storage space on server
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Internal server error - file processing failed or file save
            failed during async upload
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/threat-intel/collections/bulk-delete:
    post:
      operationId: threat_intel_bulk_delete_external
      description: Bulk delete Custom Threat Collections. Skips non-existent and already-deleted
        collections.
      tags:
      - Custom Threat Collections
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkDeleteCollectionsRequest'
        required: true
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkDeleteCollectionsResponse'
          description: Bulk delete completed
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - missing or invalid collection_ids
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/users:
    get:
      operationId: users_list_external
      description: List users. On instances whose identity provider owns user lifecycle,
        the list covers users who have signed in at least once.
      parameters:
      - in: query
        name: limit
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 50
      - in: query
        name: offset
        schema:
          type: integer
          minimum: 0
          default: 0
      - in: query
        name: sort_dir
        schema:
          enum:
          - asc
          - desc
          type: string
          default: asc
          minLength: 1
        description: |-
          * `asc` - asc
          * `desc` - desc
      tags:
      - users
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedUsers'
          description: Paginated user list
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
    post:
      operationId: users_create_external
      description: |-
        Create a new user with the given roles.

        `roles` is a non-empty list of unique role values, each one assignable on this instance.
        Unless multi-role is enabled on this instance, it must hold exactly one role. The response
        lists the user's roles highest first. Fires the Team Admin user-add trigger.
      tags:
      - users
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserCreateSerializerToCustomer'
            examples:
              CreateAMember:
                value:
                  email: analyst@example.com
                  full_name: Ana Lyst
                  roles:
                  - member
                summary: Create a member
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UserCreateSerializerToCustomer'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/UserCreateSerializerToCustomer'
        required: true
      security:
      - ApiKeyAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
          description: Created user
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/users/{user_id}:
    get:
      operationId: users_retrieve_external
      description: Get a user by ID
      parameters:
      - in: path
        name: user_id
        schema:
          type: string
        required: true
      tags:
      - users
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/users/{user_id}/disable:
    post:
      operationId: users_disable_external
      description: Disable a user
      parameters:
      - in: path
        name: user_id
        schema:
          type: string
        required: true
      tags:
      - users
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/users/{user_id}/enable:
    post:
      operationId: users_enable_external
      description: Enable a user
      parameters:
      - in: path
        name: user_id
        schema:
          type: string
        required: true
      tags:
      - users
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/users/{user_id}/role:
    put:
      operationId: users_change_role_external
      description: |-
        Replace a user's roles with the given set.

        `roles` is a non-empty list of unique role values, each one assignable on this instance.
        Unless multi-role is enabled on this instance, it must hold exactly one role. The new set
        replaces every role the user held, and the response lists it highest first. A caller
        cannot change their own roles. Fires the Team Admin user-role trigger.
      parameters:
      - in: path
        name: user_id
        schema:
          type: string
        required: true
      tags:
      - users
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserRoleUpdateSerializerToCustomer'
            examples:
              MakeAUserAnAdmin:
                value:
                  roles:
                  - admin
                summary: Make a user an admin
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UserRoleUpdateSerializerToCustomer'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/UserRoleUpdateSerializerToCustomer'
        required: true
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Resource not found
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/users/bulk:
    post:
      operationId: users_bulk_create_external
      description: 'Bulk create users. Each item takes `roles` under the same rules
        as create. Returns HTTP 200 with per-item results and a summary. Item-level
        failures use `status: "error"` and `error_msg`. Duplicate emails are reported
        as skipped, and a role not assignable on this instance is an item error.'
      tags:
      - users
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkUserCreateSerializerToCustomer'
            examples:
              CreateTwoUsers:
                value:
                  users:
                  - email: analyst@example.com
                    roles:
                    - member
                  - email: lead@example.com
                    full_name: Team Lead
                    roles:
                    - admin
                summary: Create two users
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BulkUserCreateSerializerToCustomer'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BulkUserCreateSerializerToCustomer'
        required: true
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkUserCreateOperationResponse'
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/users/bulk/disable:
    post:
      operationId: users_bulk_disable_external
      description: 'Bulk disable users. Returns HTTP 200 with per-item results and
        a summary. Item-level failures use `status: "error"` and `error_msg`.'
      tags:
      - users
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkUserIdsRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BulkUserIdsRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BulkUserIdsRequest'
        required: true
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkUserOperationResponse'
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
  /app/api/v1/users/bulk/enable:
    post:
      operationId: users_bulk_enable_external
      description: 'Bulk enable users. Returns HTTP 200 with per-item results and
        a summary. Item-level failures use `status: "error"` and `error_msg`.'
      tags:
      - users
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkUserIdsRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/BulkUserIdsRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BulkUserIdsRequest'
        required: true
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkUserOperationResponse'
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Bad request - invalid input
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  error_msg:
                    type: string
                  required_permission:
                    type: object
                    description: RBAC permission the caller lacks. Present when the
                      permission check denies the request.
                    properties:
                      resource:
                        type: string
                      action:
                        type: string
          description: Access denied
        '500':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: System error
        '503':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_msg:
                    type: string
          description: Dropzone is upgrading, or one of its services is temporarily
            unavailable. Retry after the number of seconds in the Retry-After header.
components:
  schemas:
    BulkDeleteCollectionsRequest:
      type: object
      description: Request serializer for bulk delete collections endpoint.
      properties:
        collection_ids:
          type: array
          items:
            type: string
            format: uuid
          description: List of collection UUIDs to delete
          minItems: 1
      required:
      - collection_ids
    BulkDeleteCollectionsResponse:
      type: object
      properties:
        deleted_count:
          type: integer
          description: Number of collections successfully deleted
      required:
      - deleted_count
    BulkUserCreateOperationResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/BulkUserCreateResultItem'
          readOnly: true
        summary:
          allOf:
          - $ref: '#/components/schemas/BulkUserSummary'
          readOnly: true
      required:
      - results
      - summary
    BulkUserCreateResultItem:
      type: object
      description: One bulk enable/disable outcome row.
      properties:
        user_id:
          type: string
          nullable: true
        status:
          allOf:
          - $ref: '#/components/schemas/BulkUserItemStatusEnum'
          description: |-
            Per-item outcome. Failures use status=error with error_msg; bulk endpoints still return HTTP 200 (not HTTP 404 per missing user).

            * `succeeded` - SUCCEEDED
            * `skipped` - SKIPPED
            * `error` - ERROR
        error_msg:
          type: string
          nullable: true
          description: Present when status is error (unknown user, invalid id, upstream
            failure, etc.).
        email:
          type: string
          format: email
          nullable: true
      required:
      - status
    BulkUserCreateSerializerToCustomer:
      type: object
      description: Body for POST /app/api/v1/users/bulk.
      properties:
        users:
          type: array
          items:
            $ref: '#/components/schemas/UserCreateSerializerToCustomer'
      required:
      - users
    BulkUserIdsRequest:
      type: object
      description: Body for bulk enable/disable.
      properties:
        user_ids:
          type: array
          items:
            type: string
      required:
      - user_ids
    BulkUserItemStatusEnum:
      enum:
      - succeeded
      - skipped
      - error
      type: string
      description: |-
        * `succeeded` - SUCCEEDED
        * `skipped` - SKIPPED
        * `error` - ERROR
    BulkUserOperationResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/BulkUserResultItem'
          readOnly: true
        summary:
          allOf:
          - $ref: '#/components/schemas/BulkUserSummary'
          readOnly: true
      required:
      - results
      - summary
    BulkUserResultItem:
      type: object
      description: One bulk enable/disable outcome row.
      properties:
        user_id:
          type: string
          nullable: true
        status:
          allOf:
          - $ref: '#/components/schemas/BulkUserItemStatusEnum'
          description: |-
            Per-item outcome. Failures use status=error with error_msg; bulk endpoints still return HTTP 200 (not HTTP 404 per missing user).

            * `succeeded` - SUCCEEDED
            * `skipped` - SKIPPED
            * `error` - ERROR
        error_msg:
          type: string
          nullable: true
          description: Present when status is error (unknown user, invalid id, upstream
            failure, etc.).
      required:
      - status
    BulkUserSummary:
      type: object
      properties:
        succeeded_count:
          type: integer
          readOnly: true
        skipped_count:
          type: integer
          readOnly: true
        error_count:
          type: integer
          readOnly: true
      required:
      - error_count
      - skipped_count
      - succeeded_count
    CanceledEnum:
      enum:
      - CANCEL_MANUAL
      - CANCEL_THRESHOLD
      type: string
      description: |-
        * `CANCEL_MANUAL` - CANCEL_MANUAL
        * `CANCEL_THRESHOLD` - CANCEL_THRESHOLD
    ChatQueryNested:
      type: object
      description: |-
        A chat query with its CSV citation bodies inline, as core sent them.

        The bodies are stored in `ChatQueryCsvPart` and put back here: API-key clients can't reach the preview /
        download endpoints. Reads the parts through `instance.csv_parts`, so a list read should prefetch them.
      properties:
        id:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        chat_session:
          type: string
          format: uuid
          nullable: true
        request_user:
          $ref: '#/components/schemas/CustomUser'
        request_text:
          type: string
        request_files: {}
        response_text:
          type: string
          nullable: true
        response_citations:
          nullable: true
        interview:
          $ref: '#/components/schemas/Interview'
        status:
          $ref: '#/components/schemas/ChatQueryNestedStatusEnum'
        progress_messages:
          type: array
          items:
            $ref: '#/components/schemas/ChatQueryProgress'
          readOnly: true
      required:
      - created_at
      - id
      - interview
      - progress_messages
      - request_text
      - request_user
      - updated_at
    ChatQueryNestedStatusEnum:
      enum:
      - pending
      - done
      - canceled
      - error
      - timed_out
      type: string
      description: |-
        * `pending` - Pending
        * `done` - Done
        * `canceled` - Canceled
        * `error` - Error
        * `timed_out` - Timed Out
    ChatQueryProgress:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        message:
          type: string
        timestamp:
          type: number
          format: double
      required:
      - id
      - message
      - timestamp
    ContextMemoryItemToCustomer:
      type: object
      description: |-
        Read-only serializer for customer-facing API endpoints.
        Exposes a safe subset of fields — no embeddings, source_data, or internal keys.
        tenant_union is a nested object. Write inputs use tenant_union_id (int) on create/update.
      properties:
        id:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        expires_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        is_archived:
          type: boolean
          readOnly: true
        content:
          type: string
          readOnly: true
        source_type:
          allOf:
          - $ref: '#/components/schemas/SourceTypeEnum'
          readOnly: true
        tenant_id:
          type: string
          readOnly: true
          nullable: true
        tenant_label:
          type: string
          readOnly: true
          nullable: true
        tenant_union:
          allOf:
          - $ref: '#/components/schemas/TenantUnion'
          readOnly: true
          nullable: true
        tags:
          type: array
          items:
            type: string
          readOnly: true
      required:
      - content
      - created_at
      - expires_at
      - id
      - is_archived
      - source_type
      - tags
      - tenant_id
      - tenant_label
      - tenant_union
      - updated_at
    CustomAction:
      type: object
      description: Lets the strategy updater ask each sub-component serializer whether
        the data changes an instance.
      properties:
        id:
          type: string
          format: uuid
        input: {}
        requires_approval:
          type: boolean
        template_slot:
          type: string
          format: uuid
          nullable: true
        response_script:
          type: integer
          nullable: true
        trigger_phase:
          $ref: '#/components/schemas/TriggerPhaseEnum'
        created_at:
          type: string
          format: date-time
          readOnly: true
        target_type:
          $ref: '#/components/schemas/TargetTypeEnum'
        operation:
          type: string
        lineage:
          type: string
          format: uuid
          readOnly: true
        internal_origin_uuid:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        approval_policy:
          type: string
          format: uuid
          readOnly: true
          nullable: true
      required:
      - approval_policy
      - created_at
      - internal_origin_uuid
      - lineage
      - target_type
      - trigger_phase
    CustomUser:
      type: object
      description: |-
        Basic serializer to pass CustomUser details to the front end.
        Extend with any fields your app needs.
      properties:
        id:
          type: integer
          readOnly: true
        first_name:
          type: string
          maxLength: 150
        last_name:
          type: string
          maxLength: 150
        email:
          title: Email address
          oneOf:
          - type: string
            format: email
            maxLength: 254
          - type: string
            maxLength: 0
        roles:
          type: array
          items:
            $ref: '#/components/schemas/UserRoleEnum'
          readOnly: true
        oidc_user_id:
          type: string
          nullable: true
      required:
      - id
      - roles
    DetailedCustomInstruction:
      type: object
      description: Adds usage telemetry to the base instruction.
      properties:
        id:
          type: integer
        usage_count:
          type: integer
          readOnly: true
        last_used_at:
          type: string
          format: date-time
          nullable: true
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        content:
          type: string
        internal_origin_uuid:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        strategy_versions:
          type: array
          items:
            type: integer
          readOnly: true
      required:
      - content
      - created_at
      - internal_origin_uuid
      - last_used_at
      - strategy_versions
      - usage_count
    DetailedCustomOutcome:
      type: object
      description: Adds usage telemetry to the base outcome.
      properties:
        id:
          type: integer
        conclusions_affected:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        condition: {}
        outcome:
          $ref: '#/components/schemas/DetailedCustomOutcomeOutcomeEnum'
        close_investigation_on_match:
          type: boolean
        internal_origin_uuid:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        strategy_versions:
          type: array
          items:
            type: integer
          readOnly: true
      required:
      - conclusions_affected
      - condition
      - created_at
      - internal_origin_uuid
      - outcome
      - strategy_versions
    DetailedCustomOutcomeOutcomeEnum:
      enum:
      - COMPLETED_BREACHED_CONFIRMED
      - COMPLETED_BREACHED_SUSPICIOUS
      - COMPLETED_FALSE_ALERT
      - IGNORED
      type: string
      description: |-
        * `COMPLETED_BREACHED_CONFIRMED` - COMPLETED_BREACHED_CONFIRMED
        * `COMPLETED_BREACHED_SUSPICIOUS` - COMPLETED_BREACHED_SUSPICIOUS
        * `COMPLETED_FALSE_ALERT` - COMPLETED_FALSE_ALERT
        * `IGNORED` - IGNORED
    DetailedCustomPriority:
      type: object
      description: Adds usage telemetry to the base priority.
      properties:
        id:
          type: integer
        priorities_affected:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        priority:
          $ref: '#/components/schemas/PriorityEnum'
        outcomes:
          type: array
          items:
            $ref: '#/components/schemas/InvestigationOutcomeEnum'
          minItems: 1
        insight_tag_rule:
          nullable: true
        ranking:
          type: integer
          maximum: 2147483647
          minimum: 1
        internal_origin_uuid:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        strategy_versions:
          type: array
          items:
            type: integer
          readOnly: true
      required:
      - created_at
      - internal_origin_uuid
      - priorities_affected
      - priority
      - strategy_versions
    DetailedCustomStrategyVersion:
      type: object
      description: |-
        A strategy version with usage telemetry on the version and on every sub-component.

        This is the expensive shape: each outcome, instruction, and priority costs at least one
        count query. Only use it where the telemetry is rendered.
      properties:
        id:
          type: integer
          readOnly: true
        internal_origin_uuid:
          type: string
          format: uuid
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        title:
          type: string
          readOnly: true
        rationale:
          type: string
          readOnly: true
          nullable: true
        toggle_guidance:
          type: string
          readOnly: true
          nullable: true
        is_enabled:
          type: boolean
          readOnly: true
        is_archived:
          type: boolean
          readOnly: true
        is_protected:
          type: boolean
          readOnly: true
        version_id:
          type: integer
          readOnly: true
        attack_surfaces:
          type: array
          items:
            type: string
        mitre_tactics:
          type: array
          items:
            type: string
        alert_sources:
          type: array
          items:
            type: string
        scenario:
          type: string
          nullable: true
        tenant_unions:
          type: array
          items:
            type: integer
          readOnly: true
        outcomes:
          type: array
          items:
            $ref: '#/components/schemas/DetailedCustomOutcome'
          readOnly: true
        instructions:
          type: array
          items:
            $ref: '#/components/schemas/DetailedCustomInstruction'
          readOnly: true
        priorities:
          type: array
          items:
            $ref: '#/components/schemas/DetailedCustomPriority'
          readOnly: true
        actions:
          type: array
          items:
            $ref: '#/components/schemas/CustomAction'
          readOnly: true
        is_latest:
          type: boolean
          readOnly: true
        total_usage:
          type: integer
          nullable: true
          readOnly: true
      required:
      - actions
      - created_at
      - id
      - instructions
      - internal_origin_uuid
      - is_archived
      - is_enabled
      - is_latest
      - is_protected
      - outcomes
      - priorities
      - rationale
      - tenant_unions
      - title
      - toggle_guidance
      - total_usage
      - updated_at
      - version_id
    EvidenceData:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        data:
          type: string
        mime_type:
          type: string
          nullable: true
        investigation:
          type: integer
      required:
      - created_at
      - data
      - id
      - investigation
      - updated_at
    FileTypeEnum:
      enum:
      - single_file
      - archive
      type: string
      description: |-
        * `single_file` - single_file
        * `archive` - archive
    ImportResult:
      type: object
      description: Serializer for ImportResult dataclass from threat intelligence
        imports
      properties:
        file_type:
          nullable: true
          description: |-
            Type of file processed

            * `single_file` - single_file
            * `archive` - archive
          oneOf:
          - $ref: '#/components/schemas/FileTypeEnum'
          - $ref: '#/components/schemas/NullEnum'
        collection_id:
          type: string
          nullable: true
          description: UUID of the collection
        collection_name:
          type: string
          nullable: true
          description: Name of the collection
        file_name:
          type: string
          nullable: true
          description: Name of the uploaded file
        file_hash:
          type: string
          nullable: true
          description: SHA-256 hash of the uploaded file
        files_processed:
          type: integer
          description: Number of files processed (0 for single files)
        files_succeeded:
          type: integer
          description: Number of files that succeeded (0 for single files)
        files_failed:
          type: integer
          description: Number of files that failed (0 for single files)
        files_parsed:
          type: array
          items:
            type: string
          description: List of filenames that were successfully parsed (empty for
            single files)
        files_errored:
          type: array
          items:
            type: string
          description: List of filenames that had errors (empty for single files)
        files_skipped:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: List of skipped files with reasons. Each entry has 'filename'
            and 'reason' keys. (empty for single files)
        total_objects:
          type: integer
          description: Total STIX objects processed
        indicators:
          allOf:
          - $ref: '#/components/schemas/ObjectCounts'
          description: Indicator counts
        domain_objects:
          allOf:
          - $ref: '#/components/schemas/ObjectCounts'
          description: Domain object counts
        relationships:
          allOf:
          - $ref: '#/components/schemas/ObjectCounts'
          description: Relationship counts
        sightings:
          allOf:
          - $ref: '#/components/schemas/ObjectCounts'
          description: Sighting counts
        error_count:
          type: integer
          description: Total number of errors
          readOnly: true
      required:
      - domain_objects
      - error_count
      - files_errored
      - files_failed
      - files_parsed
      - files_processed
      - files_skipped
      - files_succeeded
      - indicators
      - relationships
      - sightings
      - total_objects
    IntegrationDefinitionSerializerToCustomer:
      type: object
      description: |-
        Serializer for integration definitions/types in customer API.
        Used for GET /api/v1/system/integration-definitions.

        Returns the blueprint for each integration type including its configuration schema.
        Use this to discover what integrations are available and what config fields they require.
      properties:
        slug:
          type: string
          readOnly: true
          description: Unique slug for the integration (e.g., 'crowdstrike')
        display_name:
          type: string
          readOnly: true
          description: Human-readable integration name
        description:
          type: string
          readOnly: true
          nullable: true
          description: Description of the integration's capabilities
        docs_url:
          type: string
          readOnly: true
          nullable: true
          description: URL to integration documentation
        group:
          type: string
          readOnly: true
          description: 'Integration group: ''cloud'', ''prem'', or ''saas'''
        categories:
          type: array
          items:
            type: string
          readOnly: true
          description: Categories (e.g., ['EDR'], ['Identity'])
        config_schema:
          readOnly: true
          description: JSON Schema defining required and optional configuration fields
            for this integration
        connector_support:
          type: string
          readOnly: true
          description: 'Connector requirement: ''no_connector'', ''optional_connector'',
            or ''required_connector'''
        has_scanner:
          type: string
          readOnly: true
          description: 'Scanner capability: ''no_scan'', ''optional_scan'', or ''required_scan'''
        allows_multi_slot:
          type: boolean
          readOnly: true
          description: Whether multiple instances of this integration can be configured
            (e.g., multiple AWS accounts)
        dz_provided:
          type: boolean
          description: Whether this integration type can be Dropzone-provided (configured
            with Dropzone-managed keys)
          readOnly: true
      required:
      - allows_multi_slot
      - categories
      - config_schema
      - connector_support
      - description
      - display_name
      - docs_url
      - dz_provided
      - group
      - has_scanner
      - slug
    IntegrationInstanceSerializerToCustomerCreate:
      type: object
      description: |-
        Serializer for creating integration instances via customer API.
        Used for POST /api/v1/integrations/{slug}.
      properties:
        config_data:
          description: Configuration data matching the integration's config_schema.
            Include all required fields.
        tenant_union_id:
          type: integer
          nullable: true
          description: (Optional) Tenant union ID for multi-tenant integrations. Only
            use if you need separate integration configs per tenant union.
        connector_slug:
          type: string
          nullable: true
          description: (Optional) Connector slug for on-premises integrations requiring
            a connector. Only needed if the integration requires a connector.
        is_enabled:
          type: boolean
          default: true
          description: 'Whether to enable the integration immediately (default: true)'
        instance_label:
          type: string
          default: ''
          description: (Optional) Label for this instance. Required when adding a
            secondary instance to a scope that already has one (only for integrations
            that allow multiple instances per tenant).
      required:
      - config_data
    IntegrationInstanceSerializerToCustomerLight:
      type: object
      description: |-
        Lightweight serializer for listing integration instances in customer API.
        Does NOT include config_data - use GET /api/v1/integrations/{slug}/{uuid} for full details.
      properties:
        slug:
          type: string
          readOnly: true
          description: Unique slug for the integration type (e.g., 'crowdstrike',
            'aws')
        display_name:
          type: string
          readOnly: true
          description: Human-readable name of the integration
        description:
          type: string
          readOnly: true
          nullable: true
          description: Description of the integration
        group:
          type: string
          readOnly: true
          nullable: true
          description: 'Integration group: ''cloud'', ''prem'', or ''saas'''
        categories:
          type: array
          items:
            type: string
          readOnly: true
          description: Categories this integration belongs to (e.g., ['EDR'])
        slot_uuid:
          type: string
          format: uuid
          readOnly: true
          description: Unique identifier for this specific instance
        is_primary:
          type: boolean
          readOnly: true
          description: Whether this is the primary instance for its tenant scope
        instance_label:
          type: string
          readOnly: true
          description: Label for this instance (may be empty)
        tenant_union:
          allOf:
          - $ref: '#/components/schemas/TenantUnion'
          readOnly: true
          nullable: true
          description: Tenant union for this integration instance (if applicable)
        is_enabled:
          type: boolean
          readOnly: true
          description: Whether the integration is enabled
        status:
          type: string
          readOnly: true
          description: 'Connection status: ''connected'', ''disconnected'', ''error'',
            ''pending'', ''disabled'', or ''never_connected'''
        dz_provided:
          type: boolean
          readOnly: true
          description: Whether this is a Dropzone-provided integration (vs customer-configured)
        created_at:
          type: string
          format: date-time
          readOnly: true
          description: When this integration instance was created
        updated_at:
          type: string
          format: date-time
          readOnly: true
          description: When this integration instance was last updated
      required:
      - categories
      - created_at
      - description
      - display_name
      - dz_provided
      - group
      - instance_label
      - is_enabled
      - is_primary
      - slot_uuid
      - slug
      - status
      - tenant_union
      - updated_at
    IntegrationInstanceSerializerToCustomerTest:
      type: object
      description: |-
        Serializer for testing integration configuration via customer API.
        Used for POST /api/v1/integrations/{slug}/test.
      properties:
        config_data:
          description: Configuration data to test (does not modify the saved configuration)
        tenant_union_id:
          type: integer
          nullable: true
          description: (Optional) Tenant union ID to use for testing. Only use if
            testing multi-tenant integration configs.
        connector_slug:
          type: string
          nullable: true
          description: (Optional) Connector slug to use for testing. Only needed if
            testing integrations that require a connector.
      required:
      - config_data
    IntegrationInstancesListResponse:
      type: object
      properties:
        instances:
          type: array
          items:
            $ref: '#/components/schemas/IntegrationInstanceSerializerToCustomerLight'
      required:
      - instances
    IntegrationSlotSerializerToCustomerFull:
      type: object
      description: |-
        Full serializer for integration instances in customer API.
        Used for GET /api/v1/integrations/{slug}/{uuid} - includes config_data.

        This returns complete details including configuration data (with passwords masked).
        For listing many instances without config, use GET /api/v1/integrations/{slug} instead.
      properties:
        slug:
          type: string
          readOnly: true
          description: Integration type slug (e.g., 'crowdstrike')
        display_name:
          type: string
          readOnly: true
          description: Human-readable integration name
        description:
          type: string
          readOnly: true
          nullable: true
          description: Integration description
        docs_url:
          type: string
          readOnly: true
          nullable: true
          description: URL to integration documentation
        group:
          type: string
          readOnly: true
          description: 'Integration group: ''cloud'', ''prem'', or ''saas'''
        categories:
          type: array
          items:
            type: string
          readOnly: true
          description: Categories (e.g., ['EDR'])
        config_schema:
          readOnly: true
          nullable: true
          description: JSON Schema for configuration fields - describes what config_data
            should contain
        connector_support:
          type: string
          readOnly: true
          description: Connector requirement level for this integration
        has_scanner:
          type: string
          readOnly: true
          description: Scanner capability level for this integration
        allows_multi_slot:
          type: boolean
          readOnly: true
          description: Whether multiple instances can be configured
        allows_multiple_slots_per_tenant:
          type: boolean
          readOnly: true
          description: Whether labeled secondary instances can be added alongside
            the primary in a scope
        slot_uuid:
          type: string
          format: uuid
          readOnly: true
          description: Unique identifier for this specific instance
        is_primary:
          type: boolean
          readOnly: true
          description: Whether this is the primary instance for its tenant scope
        instance_label:
          type: string
          readOnly: true
          description: Label for this instance (may be empty)
        tenant_union:
          allOf:
          - $ref: '#/components/schemas/TenantUnion'
          readOnly: true
          nullable: true
          description: Tenant union for this integration instance (if applicable)
        config_data:
          readOnly: true
          nullable: true
          description: Configuration data for this integration instance (passwords
            are masked with asterisks)
        is_enabled:
          type: boolean
          readOnly: true
          description: Whether the integration is enabled
        status:
          type: string
          readOnly: true
          description: 'Connection status: ''connected'', ''disconnected'', ''error'',
            ''pending'', etc.'
        dz_provided:
          type: boolean
          readOnly: true
          description: Whether this is a Dropzone-managed integration (vs customer-configured)
        created_at:
          type: string
          format: date-time
          readOnly: true
          description: When this integration instance was created
        updated_at:
          type: string
          format: date-time
          readOnly: true
          description: When this integration instance was last updated
        private_public_data:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
          description: Dropzone-provided configuration data (ARNs, service account
            emails, etc.) that customers need but cannot modify
          readOnly: true
      required:
      - allows_multi_slot
      - allows_multiple_slots_per_tenant
      - categories
      - config_data
      - config_schema
      - connector_support
      - created_at
      - description
      - display_name
      - docs_url
      - dz_provided
      - group
      - has_scanner
      - instance_label
      - is_enabled
      - is_primary
      - private_public_data
      - slot_uuid
      - slug
      - status
      - tenant_union
      - updated_at
    IntegrationTypesListResponse:
      type: object
      properties:
        integrations:
          type: array
          items:
            $ref: '#/components/schemas/IntegrationDefinitionSerializerToCustomer'
      required:
      - integrations
    Interview:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        summary:
          type: string
        created_at:
          type: string
          format: date-time
          readOnly: true
        started_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        completed_at:
          type: string
          format: date-time
          nullable: true
        status:
          $ref: '#/components/schemas/InterviewStatusEnum'
        auto_approved:
          type: boolean
        interviewee_email:
          type: string
        question:
          type: string
        context:
          type: string
          nullable: true
        chat_history: {}
        error_msg:
          type: string
          nullable: true
        communicator:
          type: string
          nullable: true
        investigation:
          type: integer
          nullable: true
      required:
      - created_at
      - id
      - interviewee_email
      - question
      - started_at
      - summary
      - updated_at
    InterviewStatusEnum:
      enum:
      - pending
      - approved
      - active
      - finished
      - finished_with_referral
      - declined
      - failed
      - timed_out
      - canceled
      type: string
      description: |-
        * `pending` - pending
        * `approved` - approved
        * `active` - active
        * `finished` - finished
        * `finished_with_referral` - finished_with_referral
        * `declined` - declined
        * `failed` - failed
        * `timed_out` - timed_out
        * `canceled` - canceled
    Investigation:
      oneOf:
      - $ref: '#/components/schemas/InvestigationFull'
      - $ref: '#/components/schemas/InvestigationLight'
    InvestigationCreateServiceUnavailable:
      type: object
      properties:
        error_msg:
          type: string
        status_code:
          type: integer
          description: 503; set when retryable is true
        request_id:
          type: string
          description: Set when retryable is true
        skip_reason:
          type: string
          description: Why the alert can't be processed yet; set when retryable is
            true
        retryable:
          type: boolean
          description: True when the alert's enrichment data has not arrived yet
      required:
      - error_msg
    InvestigationFeedbackOutcomeEnum:
      enum:
      - COMPLETED_BREACHED_CONFIRMED
      - COMPLETED_BREACHED_SUSPICIOUS
      - COMPLETED_FALSE_ALERT
      - INCOMPLETE
      - IGNORED
      type: string
      description: |-
        * `COMPLETED_BREACHED_CONFIRMED` - Malicious
        * `COMPLETED_BREACHED_SUSPICIOUS` - Suspicious
        * `COMPLETED_FALSE_ALERT` - Benign
        * `INCOMPLETE` - Inconclusive
        * `IGNORED` - Ignored
    InvestigationFeedbackPatch:
      type: object
      description: |-
        Validates the `feedback` patch object accepted by the external feedback
        endpoints (single and bulk). Every field is optional so callers can patch
        any subset of the feedback.
      properties:
        status:
          $ref: '#/components/schemas/InvestigationFeedbackPatchStatusEnum'
        assignee:
          type: integer
          nullable: true
          description: The user's integer id (user.id), or null to remove the assignee.
        outcome:
          $ref: '#/components/schemas/InvestigationFeedbackOutcomeEnum'
        priority:
          $ref: '#/components/schemas/PriorityEnum'
        outcome_note:
          type: string
        exclude_learning:
          type: boolean
          description: Set true to exclude from context memory generation
    InvestigationFeedbackPatchStatusEnum:
      enum:
      - dz_new
      - dz_in_progress
      - dz_on_hold
      - dz_closed
      - in_review
      - reviewed
      type: string
      description: |-
        * `dz_new` - New
        * `dz_in_progress` - In Progress
        * `dz_on_hold` - On Hold
        * `dz_closed` - Closed
        * `in_review` - dz_new
        * `reviewed` - dz_closed
    InvestigationFeedbackStatusEnum:
      enum:
      - dz_new
      - dz_in_progress
      - dz_on_hold
      - dz_closed
      type: string
      description: |-
        * `dz_new` - New
        * `dz_in_progress` - In Progress
        * `dz_on_hold` - On Hold
        * `dz_closed` - Closed
    InvestigationFull:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        inv_url:
          type: string
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        alert:
          $ref: '#/components/schemas/ScriptVarSerializer_Alert'
        start_time:
          type: string
          format: date-time
          nullable: true
        status:
          $ref: '#/components/schemas/InvestigationStatusEnum'
        canceled:
          nullable: true
          oneOf:
          - $ref: '#/components/schemas/CanceledEnum'
          - $ref: '#/components/schemas/NullEnum'
        error_msg:
          type: string
          nullable: true
        generated_time:
          type: string
          format: date-time
          nullable: true
        exec_summary:
          type: string
          nullable: true
        alert_summary:
          type: string
          nullable: true
        attack_surface:
          type: string
          nullable: true
        mitre_tactic:
          type: string
          nullable: true
        priority:
          nullable: true
          oneOf:
          - $ref: '#/components/schemas/PriorityEnum'
          - $ref: '#/components/schemas/NullEnum'
        outcome:
          nullable: true
          oneOf:
          - $ref: '#/components/schemas/InvestigationOutcomeEnum'
          - $ref: '#/components/schemas/NullEnum'
        conclusion:
          type: string
          readOnly: true
          nullable: true
        conclusion_summary:
          type: string
          nullable: true
        insight_tags: {}
        findings: {}
        key_findings: {}
        findings_ranking: {}
        recommended_remediations: {}
        related_alert_hypothesis:
          allOf:
          - $ref: '#/components/schemas/ScriptVarSerializer_RelatedAlertHypothesis'
          nullable: true
          readOnly: true
        interview_proposals: {}
        custom_outcome:
          allOf:
          - $ref: '#/components/schemas/ScriptVarSerializer_CustomOutcomeInvestigationReference'
          nullable: true
          readOnly: true
        feedback:
          $ref: '#/components/schemas/ScriptVarSerializer_InvestigationFeedback'
        remediation_action_runs:
          type: array
          items:
            $ref: '#/components/schemas/ScriptVarSerializer_RemediationActionRun'
          readOnly: true
        ignored_for_investigation_id:
          type: integer
          nullable: true
          readOnly: true
      required:
      - alert
      - conclusion
      - created_at
      - custom_outcome
      - feedback
      - id
      - ignored_for_investigation_id
      - inv_url
      - related_alert_hypothesis
      - remediation_action_runs
      - updated_at
    InvestigationLight:
      type: object
      description: |-
        A lightweight investigation serializer that only picks up certain fields.

        Notably, we exclude:
        - no alert
        - no feedback
        - no findings

        On the contrary, we *include* custom_outcome via annotation
      properties:
        id:
          type: integer
          readOnly: true
        status:
          $ref: '#/components/schemas/InvestigationStatusEnum'
        error_msg:
          type: string
          nullable: true
        alert_summary:
          type: string
          nullable: true
        attack_surface:
          type: string
          nullable: true
        mitre_tactic:
          type: string
          nullable: true
        priority:
          nullable: true
          oneOf:
          - $ref: '#/components/schemas/PriorityEnum'
          - $ref: '#/components/schemas/NullEnum'
        conclusion:
          type: string
          readOnly: true
          nullable: true
        conclusion_summary:
          type: string
          nullable: true
        insight_tags: {}
        key_findings: {}
        recommended_remediations: {}
        inv_url:
          type: string
          readOnly: true
        custom_outcome:
          type: object
          additionalProperties: {}
          nullable: true
          readOnly: true
        detection_objective:
          type: string
          nullable: true
      required:
      - conclusion
      - custom_outcome
      - id
      - inv_url
    InvestigationNoteNested:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        user:
          $ref: '#/components/schemas/CustomUser'
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        text:
          type: string
        investigation:
          type: integer
      required:
      - created_at
      - id
      - investigation
      - updated_at
      - user
    InvestigationOutcomeEnum:
      enum:
      - COMPLETED_BREACHED_CONFIRMED
      - COMPLETED_BREACHED_SUSPICIOUS
      - COMPLETED_FALSE_ALERT
      - INCOMPLETE
      - IGNORED
      type: string
      description: |-
        * `COMPLETED_BREACHED_CONFIRMED` - COMPLETED_BREACHED_CONFIRMED
        * `COMPLETED_BREACHED_SUSPICIOUS` - COMPLETED_BREACHED_SUSPICIOUS
        * `COMPLETED_FALSE_ALERT` - COMPLETED_FALSE_ALERT
        * `INCOMPLETE` - INCOMPLETE
        * `IGNORED` - IGNORED
    InvestigationStatusEnum:
      enum:
      - not_asked
      - loading
      - success
      - error
      type: string
      description: |-
        * `not_asked` - not_asked
        * `loading` - loading
        * `success` - success
        * `error` - error
    InvestigationThreshold:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        max_invs:
          type: integer
          minimum: 0
          description: Maximum investigations per time window (0 = block all)
        time_unit:
          allOf:
          - $ref: '#/components/schemas/TimeUnitEnum'
          description: |-
            Valid: ['hour', 'day', 'week', 'month']

            * `hour` - Hour
            * `day` - Day
            * `week` - Week
            * `month` - Month
        max_by_alert_source:
          type: object
          description: 'Per-source limits (0 = block). Valid keys: [''Check Point'',
            ''Check Point Harmony Email & Collaboration'', ''DataDog'', ''Gem'', ''Panther'']...'
          additionalProperties:
            type: integer
            minimum: 0
          example:
            CrowdStrike: 50
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        is_enabled:
          type: boolean
        last_exceeded_window_start:
          readOnly: true
      required:
      - created_at
      - id
      - last_exceeded_window_start
      - max_by_alert_source
      - max_invs
      - time_unit
      - updated_at
    MttxBreakdownStats:
      type: object
      description: Mean, median, p95 for one MTTX bucket (total or per source).
      properties:
        item_count:
          type: integer
          nullable: true
        mean:
          type: number
          format: double
        median:
          type: number
          format: double
        p95:
          type: number
          format: double
      required:
      - mean
      - median
      - p95
    MttxContainer:
      type: object
      description: Aggregate stats plus per alert-source breakdown.
      properties:
        total:
          $ref: '#/components/schemas/MttxBreakdownStats'
        by_source:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/MttxBreakdownStats'
          description: Keyed by alert direct source label
      required:
      - by_source
      - total
    MttxPerInvestigationResponse:
      type: object
      description: Per-investigation MTTD, MTTP, MTTI in seconds (float), keyed by
        investigation id.
      properties:
        mttd:
          type: object
          additionalProperties:
            type: number
            format: double
          description: Investigation id (string key) to seconds
        mttp:
          type: object
          additionalProperties:
            type: number
            format: double
          description: Investigation id (string key) to seconds
        mtti:
          type: object
          additionalProperties:
            type: number
            format: double
          description: Investigation id (string key) to seconds
      required:
      - mttd
      - mtti
      - mttp
    MttxResponse:
      type: object
      description: 'System-level MTTX: MTTC, MTTD, MTTP, MTTI with totals and by_source.'
      properties:
        mttc:
          $ref: '#/components/schemas/MttxContainer'
        mttd:
          $ref: '#/components/schemas/MttxContainer'
        mttp:
          $ref: '#/components/schemas/MttxContainer'
        mtti:
          $ref: '#/components/schemas/MttxContainer'
      required:
      - mttc
      - mttd
      - mtti
      - mttp
    NullEnum:
      enum:
      - null
    ObjectCounts:
      type: object
      description: Serializer for ObjectCounts dataclass
      properties:
        found:
          type: integer
          description: Number of objects found
        created:
          type: integer
          description: Number of objects created
        updated:
          type: integer
          description: Number of objects updated
        skipped:
          type: integer
          description: Number of objects skipped
      required:
      - created
      - found
      - skipped
      - updated
    PaginatedContextMemoryList:
      type: object
      properties:
        count:
          type: integer
          description: Total number of matching items
        next:
          type: string
          format: uri
          nullable: true
          description: URL to next page
        previous:
          type: string
          format: uri
          nullable: true
          description: URL to previous page
        results:
          type: array
          items:
            $ref: '#/components/schemas/ContextMemoryItemToCustomer'
      required:
      - count
      - next
      - previous
      - results
    PaginatedInvestigationList:
      type: object
      properties:
        count:
          type: integer
          description: Total number of investigations
        next:
          type: string
          format: uri
          nullable: true
          description: URL to next page of results
        previous:
          type: string
          format: uri
          nullable: true
          description: URL to previous page of results
        results:
          type: array
          items:
            $ref: '#/components/schemas/Investigation'
      required:
      - count
      - next
      - previous
      - results
    PaginatedRoles:
      type: object
      properties:
        count:
          type: integer
          readOnly: true
        next:
          type: string
          format: uri
          readOnly: true
          nullable: true
        previous:
          type: string
          format: uri
          readOnly: true
          nullable: true
        results:
          type: array
          items:
            $ref: '#/components/schemas/Role'
          readOnly: true
      required:
      - count
      - next
      - previous
      - results
    PaginatedUsers:
      type: object
      properties:
        count:
          type: integer
          readOnly: true
        next:
          type: string
          format: uri
          readOnly: true
          nullable: true
        previous:
          type: string
          format: uri
          readOnly: true
          nullable: true
        results:
          type: array
          items:
            $ref: '#/components/schemas/User'
          readOnly: true
      required:
      - count
      - next
      - previous
      - results
    PatchedBulkInvestigationFeedbackRequest:
      type: object
      description: Request body for updating feedback on multiple investigations at
        once.
      properties:
        investigation_ids:
          type: array
          items:
            type: integer
        feedback:
          $ref: '#/components/schemas/InvestigationFeedbackPatch'
    PatchedIntegrationInstanceSerializerToCustomerUpdate:
      type: object
      description: |-
        Serializer for updating integration instances via customer API.
        Used for PATCH /api/v1/integrations/{slug}/{uuid}.
      properties:
        config_data:
          description: New configuration data (must include all required fields from
            config_schema)
        tenant_union_id:
          type: integer
          nullable: true
          description: (Optional) Update the tenant union for this integration. Only
            use if you need separate integration configs per tenant union.
        connector_slug:
          type: string
          nullable: true
          description: (Optional) Update the connector for this integration. Only
            needed if the integration requires a connector.
        is_enabled:
          type: boolean
          description: Enable or disable the integration
        instance_label:
          type: string
          description: (Optional) Update the label for this instance
    PatchedInvestigationFeedbackRequest:
      type: object
      description: Request body for updating feedback on a single investigation.
      properties:
        feedback:
          $ref: '#/components/schemas/InvestigationFeedbackPatch'
    PatchedInvestigationThreshold:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        max_invs:
          type: integer
          minimum: 0
          description: Maximum investigations per time window (0 = block all)
        time_unit:
          allOf:
          - $ref: '#/components/schemas/TimeUnitEnum'
          description: |-
            Valid: ['hour', 'day', 'week', 'month']

            * `hour` - Hour
            * `day` - Day
            * `week` - Week
            * `month` - Month
        max_by_alert_source:
          type: object
          description: 'Per-source limits (0 = block). Valid keys: [''Check Point'',
            ''Check Point Harmony Email & Collaboration'', ''DataDog'', ''Gem'', ''Panther'']...'
          additionalProperties:
            type: integer
            minimum: 0
          example:
            CrowdStrike: 50
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        is_enabled:
          type: boolean
        last_exceeded_window_start:
          readOnly: true
    PatchedThreatIntelCollectionCoreSettings:
      type: object
      description: Validation for updating core settings of a threat intelligence
        collection.
      properties:
        expires_at:
          type: string
          format: date-time
          nullable: true
          description: When set, internal threat intel search excludes this collection
            at and after this date. Send null to clear.
    PriorityEnum:
      enum:
      - informational
      - notable
      - urgent
      type: string
      description: |-
        * `informational` - Informational
        * `notable` - Notable
        * `urgent` - Urgent
    ResponseScript:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        display_name:
          type: string
        is_enabled:
          type: boolean
        is_archived:
          type: boolean
        is_imported:
          type: boolean
        trigger_def:
          type: string
          format: uuid
      required:
      - created_at
      - display_name
      - id
      - trigger_def
      - updated_at
    ResponseScriptRunSerializerForUI:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        trigger_run:
          $ref: '#/components/schemas/ResponseTriggerRunSerializerForUI'
        script:
          $ref: '#/components/schemas/ResponseScript'
        script_version:
          $ref: '#/components/schemas/ResponseScriptVersionSerializerForUI'
        status:
          $ref: '#/components/schemas/ResponseScriptRunSerializerForUIStatusEnum'
        stdout:
          type: string
          nullable: true
        stderr:
          type: string
          nullable: true
        syserr:
          type: string
          nullable: true
      required:
      - created_at
      - id
      - script
      - script_version
      - status
      - trigger_run
      - updated_at
    ResponseScriptRunSerializerForUIStatusEnum:
      enum:
      - running
      - success
      - failed
      - timed_out
      - error
      type: string
      description: |-
        * `running` - Running
        * `success` - Run Success
        * `failed` - Run Failed
        * `timed_out` - Run Timeout
        * `error` - System Error
    ResponseScriptSecret:
      type: object
      description: 'For UI: masks "value" field'
      properties:
        id:
          type: integer
          readOnly: true
        last_modified_by:
          $ref: '#/components/schemas/CustomUser'
        value:
          type: string
          description: |-
            Given the *incoming* primitive data, return the value for this field
            that should be validated and transformed to a native value.
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        key:
          type: string
      required:
      - created_at
      - id
      - key
      - last_modified_by
      - updated_at
      - value
    ResponseScriptSerializerForUI:
      type: object
      description: |-
        `run_count` and `last_run_at` read from queryset annotations applied by
        `list_response_scripts`; unannotated callers degrade to 0 / None.
      properties:
        id:
          type: integer
          readOnly: true
        trigger_def:
          $ref: '#/components/schemas/ResponseTriggerDef'
        run_count:
          type: integer
          readOnly: true
        last_run_at:
          type: string
          format: date-time
          nullable: true
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        display_name:
          type: string
        is_enabled:
          type: boolean
        is_archived:
          type: boolean
        is_imported:
          type: boolean
      required:
      - created_at
      - display_name
      - id
      - last_run_at
      - run_count
      - trigger_def
      - updated_at
    ResponseScriptVersionSerializerForUI:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        author:
          $ref: '#/components/schemas/CustomUser'
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        v_num:
          type: integer
          maximum: 2147483647
          minimum: -2147483648
        code:
          type: string
        operation_name:
          type: string
          nullable: true
          description: Decorated action operation slug
        operation_display_name:
          type: string
          nullable: true
          description: Decorated action display name
        input_schema:
          nullable: true
          description: JSON Schema for decorated action input
        output_schema:
          nullable: true
          description: JSON Schema for decorated action output
        supports_undo:
          type: boolean
          description: Whether this operation version declares undo
        ai_description:
          type: string
          nullable: true
          description: Optional LLM-facing operation description
        script:
          type: integer
      required:
      - author
      - created_at
      - id
      - script
      - updated_at
      - v_num
    ResponseTriggerDef:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        trigger_tree_labels:
          type: array
          items:
            type: string
        trigger_display_name:
          type: string
        trigger_fn_name:
          type: string
        trigger_arg_names:
          type: array
          items:
            type: string
        required_arg_names:
          type: array
          items:
            type: string
        script_var_names:
          type: array
          items:
            type: string
        is_scriptable:
          type: boolean
        is_runnable:
          type: boolean
        display_index:
          type: integer
          maximum: 2147483647
          minimum: -2147483648
        is_archived:
          type: boolean
        parent:
          type: string
          format: uuid
          nullable: true
      required:
      - created_at
      - trigger_display_name
      - trigger_fn_name
      - updated_at
      - uuid
    ResponseTriggerRunSerializerForUI:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        trigger_def:
          $ref: '#/components/schemas/ResponseTriggerDef'
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        trigger_args: {}
        batch:
          type: integer
          nullable: true
      required:
      - created_at
      - id
      - trigger_def
      - updated_at
    Role:
      type: object
      description: One role, with its value and display name.
      properties:
        value:
          allOf:
          - $ref: '#/components/schemas/UserRoleEnum'
          readOnly: true
          description: |-
            Role value, as a user's roles list carries it.

            * `admin` - admin
            * `member` - member
            * `restricted-read-only` - restricted-read-only
            * `fleet-administrator` - fleet-administrator
            * `instance-administrator` - instance-administrator
            * `advanced-instance-admin` - advanced-instance-admin
            * `security-engineer` - security-engineer
            * `reviewer` - reviewer
            * `analyst` - analyst
            * `incident-responder` - incident-responder
            * `threat-intel-analyst` - threat-intel-analyst
            * `compliance-auditor` - compliance-auditor
            * `dashboard-viewer` - dashboard-viewer
            * `viewer` - viewer
        label:
          type: string
          readOnly: true
          description: Display name.
      required:
      - label
      - value
    ScriptVarSerializer_Alert:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        schema_key:
          type: string
        coalesce_key:
          type: string
          nullable: true
        direct_source_label:
          type: string
        proxy_source_label:
          type: string
          nullable: true
        origin_integration:
          type: string
          nullable: true
        origin_ticket_id:
          type: string
          nullable: true
        origin_ticket_id_label:
          type: string
          nullable: true
        origin_ticket_url:
          type: string
          nullable: true
        start_time:
          type: string
          format: date-time
          nullable: true
        create_time:
          type: string
          format: date-time
        severity:
          type: string
          nullable: true
        alert_type:
          type: string
        title:
          type: string
        original_title:
          type: string
        entities: {}
        assets: {}
        custom_fields: {}
        raw_alert_content:
          type: string
        tenant_union:
          $ref: '#/components/schemas/ScriptVarSerializer_TenantUnion'
        tenant_id:
          type: string
          nullable: true
        tenant_label:
          type: string
          nullable: true
        tenant_integration_key:
          type: string
          nullable: true
      required:
      - alert_type
      - create_time
      - created_at
      - direct_source_label
      - id
      - raw_alert_content
      - schema_key
      - tenant_union
      - title
      - updated_at
    ScriptVarSerializer_CustomOutcomeInvestigationReference:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        strategy_id:
          type: integer
          readOnly: true
        strategy_version_id:
          type: integer
          readOnly: true
        strategy_title:
          type: string
          readOnly: true
        outcome:
          type: string
          readOnly: true
        condition:
          readOnly: true
      required:
      - condition
      - id
      - outcome
      - strategy_id
      - strategy_title
      - strategy_version_id
    ScriptVarSerializer_InvestigationFeedback:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        status:
          $ref: '#/components/schemas/InvestigationFeedbackStatusEnum'
        priority:
          nullable: true
          oneOf:
          - $ref: '#/components/schemas/PriorityEnum'
          - $ref: '#/components/schemas/NullEnum'
        outcome:
          nullable: true
          oneOf:
          - $ref: '#/components/schemas/InvestigationFeedbackOutcomeEnum'
          - $ref: '#/components/schemas/NullEnum'
        conclusion:
          type: string
          readOnly: true
          nullable: true
        conclusion_summary:
          type: string
          nullable: true
        findings: {}
        key_findings:
          nullable: true
        findings_ranking:
          nullable: true
        insight_tags:
          nullable: true
        outcome_note:
          type: string
          nullable: true
        remediations_done: {}
      required:
      - conclusion
      - created_at
      - id
      - updated_at
    ScriptVarSerializer_RelatedAlertHypothesis:
      type: object
      description: Shape of the JSON stored in Investigation.related_alert_hypothesis
      properties:
        summary:
          type: string
        outcome:
          type: string
        related_investigations:
          type: array
          items:
            $ref: '#/components/schemas/ScriptVarSerializer_RelatedInvestigation'
      required:
      - outcome
      - related_investigations
      - summary
    ScriptVarSerializer_RelatedInvestigation:
      type: object
      properties:
        summary:
          type: string
        investigation_id:
          type: integer
        alert_start_time:
          type: string
        alert_source:
          type: string
      required:
      - alert_source
      - alert_start_time
      - investigation_id
      - summary
    ScriptVarSerializer_RemediationAction:
      type: object
      properties:
        name:
          type: string
      required:
      - name
    ScriptVarSerializer_RemediationActionRun:
      type: object
      properties:
        remediation_action:
          $ref: '#/components/schemas/ScriptVarSerializer_RemediationAction'
        entity:
          type: string
      required:
      - remediation_action
    ScriptVarSerializer_TenantUnion:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        display_name:
          type: string
        lookup_dict: {}
      required:
      - created_at
      - display_name
      - id
      - updated_at
    SourceTypeEnum:
      enum:
      - config_form
      - chat_message
      - investigation_edit
      - integration_scrape
      type: string
      description: |-
        * `config_form` - config_form
        * `chat_message` - chat_message
        * `investigation_edit` - investigation_edit
        * `integration_scrape` - integration_scrape
    TargetTypeEnum:
      enum:
      - template
      - script
      type: string
      description: |-
        * `template` - Template
        * `script` - Script
    TenantUnion:
      type: object
      description: Adds update nested feature
      properties:
        id:
          type: integer
          readOnly: true
        last_modified_by:
          allOf:
          - $ref: '#/components/schemas/CustomUser'
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        display_name:
          type: string
        lookup_dict: {}
      required:
      - created_at
      - display_name
      - id
      - updated_at
    ThreatIntelCollection:
      type: object
      description: Serializer for ThreatIntelCollection model
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
        status:
          allOf:
          - $ref: '#/components/schemas/ThreatIntelCollectionStatusEnum'
          readOnly: true
          description: |-
            Collection status: parsing, active, deleted, or error

            * `parsing` - Parsing
            * `active` - Active
            * `deleted` - Deleted
            * `error` - Error
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        created_by:
          type: integer
          nullable: true
          description: User ID who created the collection. None indicates System user.
          readOnly: true
        updated_by:
          type: integer
          nullable: true
          description: User ID who last updated the collection. None indicates System
            user.
          readOnly: true
        file_info:
          type: object
          additionalProperties:
            type: object
            properties:
              type:
                type: string
                enum:
                - single_file
                - archive
                description: 'File type: ''single_file'' for individual JSON files,
                  ''archive'' for ZIP/TAR archives'
              hash:
                type: string
                description: SHA-256 hash of the uploaded file or archive
              imported_at:
                type: string
                description: ISO 8601 timestamp when file was imported
              indicators_created:
                type: integer
                description: Number of indicators created from this file or archive
              indicators_updated:
                type: integer
                description: Number of indicators updated from this file or archive
              total_objects:
                type: integer
                description: Total STIX objects processed from this file or archive
              files_processed:
                type: integer
                description: Number of files processed from the archive (only present
                  for archives)
              files_succeeded:
                type: integer
                description: Number of files that succeeded (only present for archives)
              files_failed:
                type: integer
                description: Number of files that failed (only present for archives)
              files_parsed:
                type: array
                items:
                  type: string
                description: List of filenames that were successfully parsed (only
                  present for archives)
              files_errored:
                type: array
                items:
                  type: string
                description: List of filenames that had errors (only present for archives)
              files_skipped:
                type: array
                items:
                  type: object
                  properties:
                    filename:
                      type: string
                    reason:
                      type: string
                  required:
                  - filename
                  - reason
                description: List of skipped files with reasons (only present for
                  archives)
            required:
            - type
            - hash
            - imported_at
            - indicators_created
            - indicators_updated
            - total_objects
          example:
            threat_intel_bundle.json:
              type: single_file
              hash: a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456
              imported_at: '2024-01-15T10:30:00Z'
              indicators_created: 150
              indicators_updated: 25
              total_objects: 200
            threat_feeds_archive.tar.gz:
              type: archive
              hash: b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef1234567890
              imported_at: '2024-01-15T10:30:00Z'
              files_processed: 10
              files_succeeded: 8
              files_failed: 1
              files_parsed:
              - threat_feed_1.json
              - threat_feed_2.json
              - threat_feed_3.json
              - threat_feed_4.json
              - threat_feed_5.json
              - threat_feed_6.json
              - threat_feed_7.json
              - threat_feed_8.json
              files_errored:
              - invalid_file.json
              files_skipped:
              - filename: __MACOSX/.DS_Store
                reason: hidden_file
              - filename: readme.txt
                reason: not_json
              indicators_created: 500
              indicators_updated: 100
              total_objects: 750
          description: Dictionary keyed by filename containing file metadata. Each
            entry contains common fields (type, hash, imported_at, indicators_created,
            indicators_updated, total_objects). Archive entries (type='archive') additionally
            include files_processed, files_succeeded, files_failed, files_parsed,
            files_errored, and files_skipped fields for detailed filename tracking.
          readOnly: true
        indicators_count:
          type: integer
          description: Get the count of indicators in this collection
          readOnly: true
        dz_owned:
          type: boolean
          readOnly: true
          default: false
          description: Flag to mark Dropzone-owned collections (e.g., auto-loaded
            threat intel)
        expires_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: When set, internal threat intel search excludes this collection
            at and after this date.
      required:
      - created_at
      - created_by
      - dz_owned
      - expires_at
      - file_info
      - id
      - indicators_count
      - name
      - status
      - updated_at
      - updated_by
    ThreatIntelCollectionList:
      type: object
      properties:
        collections:
          type: array
          items:
            $ref: '#/components/schemas/ThreatIntelCollection'
          description: Array of collections
        count:
          type: integer
          description: Total number of collections returned
      required:
      - collections
      - count
    ThreatIntelCollectionStatusEnum:
      enum:
      - parsing
      - active
      - deleted
      - error
      type: string
      description: |-
        * `parsing` - Parsing
        * `active` - Active
        * `deleted` - Deleted
        * `error` - Error
    TimeUnitEnum:
      enum:
      - hour
      - day
      - week
      - month
      type: string
      description: |-
        * `hour` - Hour
        * `day` - Day
        * `week` - Week
        * `month` - Month
    TriggerPhaseEnum:
      enum:
      - match
      - complete
      - both
      type: string
      description: |-
        * `match` - Match
        * `complete` - Complete
        * `both` - Both
    User:
      type: object
      description: Curated external user shape.
      properties:
        id:
          type: integer
          readOnly: true
          nullable: true
          description: Internal user ID.
        user_id:
          type: string
          readOnly: true
          description: User identifier returned by list/create
        email:
          type: string
          format: email
          readOnly: true
          nullable: true
        full_name:
          type: string
          readOnly: true
          nullable: true
        roles:
          type: array
          items:
            $ref: '#/components/schemas/UserRoleEnum'
          readOnly: true
          nullable: true
          description: Every role the user holds, highest first. Holds one role unless
            multi-role is enabled on this instance. Null when the user could not be
            read back after a write. On instances whose identity provider owns user
            lifecycle, this reflects the user's last sign-in and does not change when
            their roles change upstream.
        active:
          type: boolean
          readOnly: true
          nullable: true
          description: Whether the user may sign in. On instances whose identity provider
            owns user lifecycle, this reflects the user's last sign-in and does not
            change when they are removed upstream, until their next sign-in is refused.
        last_login_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
      required:
      - active
      - created_at
      - email
      - full_name
      - id
      - last_login_at
      - roles
      - user_id
    UserCreateSerializerToCustomer:
      type: object
      description: Body for creating a single user.
      properties:
        email:
          type: string
          format: email
        full_name:
          type: string
          nullable: true
        roles:
          type: array
          items:
            $ref: '#/components/schemas/UserRoleEnum'
          minItems: 1
      required:
      - email
      - roles
    UserRoleEnum:
      enum:
      - admin
      - member
      - restricted-read-only
      - fleet-administrator
      - instance-administrator
      - advanced-instance-admin
      - security-engineer
      - reviewer
      - analyst
      - incident-responder
      - threat-intel-analyst
      - compliance-auditor
      - dashboard-viewer
      - viewer
      type: string
      description: |-
        * `admin` - admin
        * `member` - member
        * `restricted-read-only` - restricted-read-only
        * `fleet-administrator` - fleet-administrator
        * `instance-administrator` - instance-administrator
        * `advanced-instance-admin` - advanced-instance-admin
        * `security-engineer` - security-engineer
        * `reviewer` - reviewer
        * `analyst` - analyst
        * `incident-responder` - incident-responder
        * `threat-intel-analyst` - threat-intel-analyst
        * `compliance-auditor` - compliance-auditor
        * `dashboard-viewer` - dashboard-viewer
        * `viewer` - viewer
    UserRoleUpdateSerializerToCustomer:
      type: object
      description: Body for PUT /app/api/v1/users/<user_id>/role.
      properties:
        roles:
          type: array
          items:
            $ref: '#/components/schemas/UserRoleEnum'
          minItems: 1
      required:
      - roles
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
