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

# Update tag status

> Change the status of an existing tag.

Status transitions that trigger propagation:
- ``confirmed`` → add_tag propagated to Qdrant + FalkorDB
- ``rejected``  → remove_tag propagated to Qdrant + FalkorDB
- ``suggested`` → no propagation (reset to unreviewed)



## OpenAPI

````yaml /api-reference/knowledge-api.json patch /v1/knowledge/documents/{doc_id}/tags/{tag}
openapi: 3.1.0
info:
  title: Strattum Knowledge API
  description: >-
    REST API that serves semantic document search — embeddings via the
    configured LLM provider, indexed in Qdrant, with metadata stored in
    PostgreSQL. (PRD-004, Workstream 1.4)
  version: 1.0.0
servers: []
security: []
paths:
  /v1/knowledge/documents/{doc_id}/tags/{tag}:
    patch:
      tags:
        - tags
      summary: Update tag status
      description: |-
        Change the status of an existing tag.

        Status transitions that trigger propagation:
        - ``confirmed`` → add_tag propagated to Qdrant + FalkorDB
        - ``rejected``  → remove_tag propagated to Qdrant + FalkorDB
        - ``suggested`` → no propagation (reset to unreviewed)
      operationId: update_tag_status_v1_knowledge_documents__doc_id__tags__tag__patch
      parameters:
        - name: doc_id
          in: path
          required: true
          schema:
            type: string
            title: Doc Id
        - name: tag
          in: path
          required: true
          schema:
            type: string
            title: Tag
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchTagRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResponse'
        '404':
          description: Tag or document not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '503':
          description: PostgreSQL unavailable
components:
  schemas:
    PatchTagRequest:
      properties:
        status:
          type: string
          title: Status
          description: 'New status: ''suggested'' | ''confirmed'' | ''rejected''.'
      type: object
      required:
        - status
      title: PatchTagRequest
      description: Request body for PATCH /knowledge/documents/{doc_id}/tags/{tag}.
    TagResponse:
      properties:
        id:
          type: integer
          title: Id
        doc_id:
          type: string
          title: Doc Id
        tag:
          type: string
          title: Tag
        status:
          type: string
          title: Status
          description: '''suggested'' | ''confirmed'' | ''rejected'''
        source:
          type: string
          title: Source
          description: '''auto'' | ''manual'''
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - doc_id
        - tag
        - status
        - source
      title: TagResponse
      description: A single tag record.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````