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

# Rename or describe a topic

> Renames a topic or rewrites its English description. Either edit stamps it `manual`, and the enricher never overwrites it again. The slug never changes.



## OpenAPI

````yaml /openapi.json patch /v1/knowledge/topics/{slug}
openapi: 3.0.0
info:
  title: wondeya Developer API
  description: >-
    The public REST API for building on wondeya: agents, projects, pages,
    knowledge, assets, brand, theme, usage, retrieval and chat, authenticated by
    a workspace API key (`Authorization: Bearer wdy_live_…`).
  version: 0.1.0
  contact:
    name: wondeya
    url: https://wondeya.com
    email: team@wondeya.com
  license:
    name: Proprietary
    url: https://wondeya.com/terms
servers:
  - url: https://api.wondeya.com
    description: Production
  - url: http://localhost:8080
    description: Development
security: []
tags:
  - name: Identity
  - name: Agents
  - name: Projects
  - name: Pages
  - name: Knowledge
  - name: Assets
  - name: Brand
  - name: Usage
  - name: Chat
paths:
  /v1/knowledge/topics/{slug}:
    patch:
      tags:
        - Knowledge
      summary: Rename or describe a topic
      description: >-
        Renames a topic or rewrites its English description. Either edit stamps
        it `manual`, and the enricher never overwrites it again. The slug never
        changes.
      operationId: PublicKnowledgeController_updateTopic_v1
      parameters:
        - name: slug
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateKnowledgeTopicDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicKnowledgeTopicDto'
        '404':
          description: No such topic in this workspace
      security:
        - api-key: []
components:
  schemas:
    UpdateKnowledgeTopicDto:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 120
        description:
          type: string
          maxLength: 200
          description: One English line steering topic selection at answer time.
        agentId:
          type: object
          nullable: true
    PublicKnowledgeTopicDto:
      type: object
      properties:
        agentId:
          type: object
          nullable: true
        slug:
          type: string
          description: The stable machine key; identifies the topic.
        title:
          type: string
        description:
          type: string
        origin:
          type: string
          description: '`auto` (enricher) or `manual` (edited).'
        sourceCount:
          type: number
        chunkCount:
          type: number
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - agentId
        - slug
        - title
        - description
        - origin
        - sourceCount
        - chunkCount
        - createdAt
        - updatedAt
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: >-
        A workspace API key: wdy_live_… / wdy_test_…. Created at POST
        /workspaces/{tenantId}/keys and shown exactly once.

````