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

# Create task comment

> Add a comment to a task. Mentions in the content notify the mentioned users, and the assignee is notified too. Returns the stored activity row, which carries no author object -- read the list route for that.



## OpenAPI

````yaml /openapi.json post /comment/{taskId}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /comment/{taskId}:
    post:
      tags:
        - Comments
      summary: Create task comment
      description: >-
        Add a comment to a task. Mentions in the content notify the mentioned
        users, and the assignee is notified too. Returns the stored activity
        row, which carries no author object -- read the list route for that.
      operationId: createTaskComment
      parameters:
        - schema:
            type: string
          required: true
          name: taskId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                  minLength: 1
                externalUserName:
                  type: string
                  maxLength: 120
                  description: >-
                    Attribution for an imported comment. Ignored unless
                    externalSource is also given.
                externalSource:
                  type: string
                  enum:
                    - planka
                    - trello
                    - jira
                  description: The tool the comment was imported from.
              required:
                - content
      responses:
        '200':
          description: The created comment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Activity'
        '400':
          description: Invalid body, or unknown task
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing task:update permission
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    Activity:
      type: object
      properties:
        id:
          type: string
        taskId:
          type: string
        type:
          type: string
          description: >-
            One of: comment, task, create, status_changed, priority_changed,
            assignee_changed, unassigned, due_date_changed, title_changed,
            description_changed.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type:
            - string
            - 'null'
        content:
          type:
            - string
            - 'null'
        eventData:
          description: >-
            Type-specific payload, e.g. { oldStatus, newStatus } for
            status_changed. Null for plain comments.
        externalUserName:
          type:
            - string
            - 'null'
          description: Set when the activity was imported from another tool.
        externalUserAvatar:
          type:
            - string
            - 'null'
        externalSource:
          type:
            - string
            - 'null'
          description: The tool it was imported from, e.g. planka, trello, jira.
        externalUrl:
          type:
            - string
            - 'null'
      required:
        - id
        - taskId
        - type
        - createdAt
        - updatedAt
        - userId
        - content
        - externalUserName
        - externalUserAvatar
        - externalSource
        - externalUrl
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````