Skip to content

Node.js based forum software built for the modern web

1017 B
Raw Blame
put:
  tags:
    - topics
  summary: move topic to another category
  description: |
    This operation moves a topic from one category to another.

    **Note**: This is a privileged call and can only be executed by administrators, global moderators, or the moderator for the category of the passed-in topic.
  parameters:
    - in: path
      name: tid
      schema:
        type: string
      required: true
      description: a valid topic id
      example: 1
  requestBody:
    required: true
    content:
      application/json:
        schema:
          type: object
          properties:
            cid:
              type: number
              example: -1
  responses:
    '200':
      description: Topic successfully moved
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                $ref: ../../../components/schemas/Status.yaml#/Status
              response:
                type: object
                properties: {}