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

# Backfill Tag Group

> Queue a one-time auto-infer catch-up for an auto-infer tag group: every entity of the group's type with no value in it yet (or only the given `entityOIds`) is sent for LLM inference. Entities with a value, or with one explicitly removed, are never touched. Pass `dryRun` to preview without queuing.



## OpenAPI

````yaml post /api/v2/tag-group/backfill
openapi: 3.0.0
info:
  version: 5.4.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/tag-group/backfill:
    post:
      tags:
        - Tag Group
      summary: Backfill Tag Group
      description: >-
        Queue a one-time auto-infer catch-up for an auto-infer tag group: every
        entity of the group's type with no value in it yet (or only the given
        `entityOIds`) is sent for LLM inference. Entities with a value, or with
        one explicitly removed, are never touched. Pass `dryRun` to preview
        without queuing.
      operationId: backfillTagGroup
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                oId:
                  type: string
                  minLength: 1
                  description: Tag group OId (must be auto-infer)
                  example: tg_1234
                entityOIds:
                  type: array
                  items:
                    type: string
                  description: >-
                    Only backfill these entities (intersected with the ones not
                    yet in the group). Omit for all.
                dryRun:
                  type: boolean
                  description: >-
                    Preview which entities would be queued without queuing
                    anything. Defaults to false.
              required:
                - oId
      responses:
        '200':
          description: Backfill Tag Group response
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  data:
                    $ref: '#/components/schemas/TagGroupBackfill'
                required:
                  - _metadata
                  - data
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
        '404':
          description: Tag group, tag or entity not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
      deprecated: false
components:
  schemas:
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          example: 0
          description: API usage
        requestId:
          type: string
          example: requestId
          description: Request ID
        message:
          type: string
          example: message
          description: Message
        timestamp:
          type: string
          example: '2021-01-01T00:00:00.000Z'
          description: Timestamp
      required:
        - requestId
        - timestamp
    TagGroupBackfill:
      type: object
      properties:
        dryRun:
          type: boolean
        candidates:
          type: array
          nullable: true
          items:
            type: object
            properties:
              oId:
                type: string
              name:
                type: string
            required:
              - oId
              - name
          description: >-
            Dry run only: the entities a backfill would queue right now (capped
            per run)
        queuedCount:
          type: integer
          description: >-
            Entities sent for inference; 0 on a dry run. Inference runs
            asynchronously.
        remainingCount:
          type: integer
          description: Entities over the per-run cap — call again to pick them up
      required:
        - dryRun
        - candidates
        - queuedCount
        - remainingCount
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````