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

# Approve suggestions

> Publish suggested content so Claudia starts answering with it. Idempotent and tolerant: read the per-id outcome — an id already decided is skipped, and one that still carries a blank is blocked until you edit it with updateImprovement.



## OpenAPI

````yaml /api-reference/specs/claudia/v1.json post /v1/knowledge-bases/{kbId}/improvements/approve
openapi: 3.0.1
info:
  title: Claudia API
  version: 1.0.0
servers:
  - url: https://api.cloudhumans.com/claudia
    description: Production
  - url: https://api.cloudhumans.com/claudia/staging
    description: Staging
security:
  - bearerAuth: []
tags:
  - name: MCP Servers
    description: >-
      The MCP servers your agents can call tools on. Registering one here is
      what makes its tools selectable in an agent; the credentials it needs are
      stored encrypted and never read back.
  - name: Knowledge Base Content
    description: Read, search and edit the content that answers your customers.
  - name: Content Quality
    description: Rewrites proposed for content that is answering your customers badly.
  - name: Playground
    description: >-
      Talk to one of your agents as if you were a customer, without touching a
      real conversation.
  - name: Project Settings
    description: >-
      Read and change how a ClaudIA project behaves — the settings screens of
      the ClaudIA app, as an API.
  - name: Content Improvements
    description: Answers Claudia proposes for questions your content does not cover yet.
  - name: Knowledge Bases
    description: The knowledge bases your account can manage.
  - name: Content Sources
    description: The sites Claudia crawls to keep a knowledge base in sync.
paths:
  /v1/knowledge-bases/{kbId}/improvements/approve:
    post:
      tags:
        - Content Improvements
      summary: Approve suggestions
      description: >-
        Publish suggested content so Claudia starts answering with it.
        Idempotent and tolerant: read the per-id outcome — an id already decided
        is skipped, and one that still carries a blank is blocked until you edit
        it with updateImprovement.
      operationId: approveImprovements
      parameters:
        - name: kbId
          in: path
          description: Knowledge base to operate on. Get the ids from listMyKnowledgeBases.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImprovementApproveRequest'
        required: true
      responses:
        '200':
          description: The per-id outcome of the batch.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResult'
        '400':
          description: The request could not be answered as written.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, expired or invalid credentials.
        '403':
          description: The credentials hold no account allowed to manage this content.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such resource, or none these credentials can reach — the two are
            deliberately indistinguishable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit applied by the API gateway. Back off and retry.
components:
  schemas:
    ImprovementApproveRequest:
      required:
        - ids
      type: object
      properties:
        ids:
          type: array
          description: Up to 200 ids, as returned by the listing.
          items:
            type: string
            description: Up to 200 ids, as returned by the listing.
      description: The suggestions to approve.
    BatchResult:
      required:
        - notFound
        - skipped
      type: object
      properties:
        approved:
          type: array
          description: Ids that were approved. Absent on a reject call.
          items:
            type: string
            description: Ids that were approved. Absent on a reject call.
        rejected:
          type: array
          description: Ids that were rejected. Absent on an approve call.
          items:
            type: string
            description: Ids that were rejected. Absent on an approve call.
        skipped:
          type: array
          description: >-
            Ids already decided before this call, or that lost a race against a
            concurrent decision. Nothing changed for them.
          items:
            type: string
            description: >-
              Ids already decided before this call, or that lost a race against
              a concurrent decision. Nothing changed for them.
        notFound:
          type: array
          description: >-
            Ids that do not exist, belong to another knowledge base, or are not
            reviewable here.
          items:
            type: string
            description: >-
              Ids that do not exist, belong to another knowledge base, or are
              not reviewable here.
        blocked:
          type: array
          description: >-
            Ids refused because they still need editing (an unfilled blank, or a
            change this API cannot apply on its own).
          items:
            type: string
            description: >-
              Ids refused because they still need editing (an unfilled blank, or
              a change this API cannot apply on its own).
        failed:
          type: array
          description: >-
            Ids whose decision was recorded but could not be applied, and were
            rolled back to pending. Safe to retry.
          items:
            type: string
            description: >-
              Ids whose decision was recorded but could not be applied, and were
              rolled back to pending. Safe to retry.
      description: What happened to each id in the batch.
    Error:
      required:
        - error
      type: object
      properties:
        error:
          type: string
          description: What went wrong.
          example: 'Forbidden: token holds no claim for the requested account'
      description: Something the caller needs to fix.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````