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

# Update Pillar

> Updates a Knowledge Base pillar's name, description, or status. At least one of the three must be provided; only provided fields change. Renaming returns a 409 when another pillar already uses the name. Status accepts published or archived: archiving hides the pillar from pillar listings and stops its facts feeding content generation, while keeping the facts stored. Requires a website-admin API key. Also available as the MCP tool `update_pillar`.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v1/knowledge-base/pillars/{pillar_id}
openapi: 3.1.0
info:
  title: AthenaHQ API
  description: >-
    AthenaHQ API provides programmatic access to manage your websites and
    prompts for AI-powered content optimization.
  version: 1.0.0
  contact:
    email: support@athenahq.ai
servers:
  - url: https://api.athenahq.ai
    description: Production server
security:
  - apiKey: []
tags:
  - name: Basics
    description: Core API operations for managing websites and prompts
  - name: Metrics
    description: Metrics and analytics endpoints for tracking AI visibility
  - name: Billing
    description: Billing and credits endpoints for managing usage
  - name: Team Management
    description: Endpoints for managing team members and invitations
  - name: Groups
    description: Endpoints for managing groups of websites
  - name: Content
    description: >-
      Endpoints for accessing Content Hub data — tabs, tracked URLs, and per-URL
      prompt breakdowns.
  - name: Pitch Workspace
    description: >-
      Endpoints for accessing pitch workspace reports — org-scoped pitch runs
      with competitors, prompts, attributes, and aggregate metrics.
  - name: Knowledge Base
    description: >-
      Endpoints for reading the brand Knowledge Base — approved brand facts and
      the pillars that organize them.
paths:
  /api/v1/knowledge-base/pillars/{pillar_id}:
    patch:
      tags:
        - Knowledge Base
      summary: Update Pillar
      description: >-
        Updates a Knowledge Base pillar's name, description, or status. At least
        one of the three must be provided; only provided fields change. Renaming
        returns a 409 when another pillar already uses the name. Status accepts
        published or archived: archiving hides the pillar from pillar listings
        and stops its facts feeding content generation, while keeping the facts
        stored. Requires a website-admin API key. Also available as the MCP tool
        `update_pillar`.
      operationId: updatePillar
      parameters:
        - name: pillar_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The pillar to update.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                website_id:
                  type: string
                  format: uuid
                  description: The website the pillar belongs to.
                name:
                  type: string
                  minLength: 1
                  maxLength: 120
                  description: New pillar name.
                description:
                  type: string
                  maxLength: 2000
                  description: >-
                    New pillar description. An empty string clears the stored
                    description.
                status:
                  type: string
                  enum:
                    - published
                    - archived
                  description: >-
                    New status. Only published and archived are accepted; the
                    pipeline-internal states (draft, researching) cannot be set
                    over the API.
              required:
                - website_id
      responses:
        '200':
          description: The updated pillar plus a pre-update snapshot of the editable fields
          content:
            application/json:
              schema:
                type: object
                properties:
                  pillar:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      description:
                        type:
                          - string
                          - 'null'
                      status:
                        type: string
                        enum:
                          - researching
                          - published
                          - draft
                          - archived
                    required:
                      - id
                      - name
                      - description
                      - status
                  before:
                    type: object
                    description: Values of the editable fields before this update.
                    properties:
                      name:
                        type: string
                      description:
                        type:
                          - string
                          - 'null'
                      status:
                        type: string
                        enum:
                          - researching
                          - published
                          - draft
                          - archived
                    required:
                      - name
                      - description
                      - status
                required:
                  - pillar
                  - before
        '400':
          description: Bad request - Invalid parameters, or no editable field was provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                empty_edit:
                  value:
                    error: at least one of name, description, or status is required
                whitespace_name:
                  value:
                    error: name cannot be empty
                blank_name:
                  value:
                    error: 'name: name must not be empty'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Forbidden - No admin access to this website, or the Knowledge Base
            is not enabled for the organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unauthorized_website:
                  value:
                    error: Unauthorized access to this website
                kb_not_enabled:
                  value:
                    error: Knowledge Base is not enabled for this organization
        '404':
          description: Not found - No pillar with this id on the website
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                pillar_not_found:
                  value:
                    error: Pillar not found
        '409':
          description: Conflict - Another pillar already uses the requested name
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                name_taken:
                  value:
                    error: A pillar named "Pricing" already exists
      security:
        - apiKey: []
components:
  schemas:
    Error:
      type: object
      description: Error response object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
          example: Unauthorized
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. You can create one
        [here](https://app.athenahq.ai/organization?tab=api).

````