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

# Run theme analysis on the project's pending completed jobs

> Immediately enqueues the project terminal jobs not yet handed off for theme analysis (the same set the poller would pick up within ~1 min). Requires the project toggle to be on. Pass force=true to also re-run already-processed jobs.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json post /api/projects/theme-analysis/run-pending
openapi: 3.0.0
info:
  title: MentionLab Public API v0.3.4-rc
  description: ''
  version: 0.3.4-rc
  contact: {}
servers:
  - url: https://api.mentionlab.io
security: []
tags: []
paths:
  /api/projects/theme-analysis/run-pending:
    post:
      tags:
        - Theme Analysis
      summary: Run theme analysis on the project's pending completed jobs
      description: >-
        Immediately enqueues the project terminal jobs not yet handed off for
        theme analysis (the same set the poller would pick up within ~1 min).
        Requires the project toggle to be on. Pass force=true to also re-run
        already-processed jobs.
      operationId: ThemeAnalysisController_runPending
      parameters:
        - name: x-project-id
          in: header
          description: Project ID to specify the project context
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunPendingThemeAnalysisDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunPendingThemeAnalysisResponse'
        '400':
          description: >-
            The request failed validation — the body, query or path parameters
            are malformed or out of range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: The request is missing valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: >-
            The authenticated principal lacks the required permission, or access
            to the requested organisation/project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    RunPendingThemeAnalysisDto:
      type: object
      properties:
        force:
          type: boolean
          description: >-
            Also re-enqueue jobs that were already handed off (resets their
            marker).
          example: false
    RunPendingThemeAnalysisResponse:
      type: object
      properties:
        enqueued:
          type: number
          description: Number of jobs enqueued for theme analysis.
          example: 5
        remaining:
          type: number
          description: >-
            Jobs still pending after this batch (each call processes up to 200).
            Call again until 0.
          example: 0
      required:
        - enqueued
        - remaining
    ApiErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code of the error.
          example: 400
        message:
          type: string
          description: >-
            Human-readable description of the error. Validation failures return
            an array of per-field validation errors instead of a single string.
          example: Validation failed
        error:
          type: string
          description: Short name of the HTTP error.
          example: Bad Request
      required:
        - statusCode

````