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

# Update comment

> Replace the text of a comment of the company. The author of the comment does not change.

Version:
v4


## OpenAPI

````yaml openapi-v2.json PUT /discussion/v4/comments/{commentId}
openapi: 3.0.0
info:
  title: Sesame Public API v2
  description: >-
    Public API v2 — additive surface `/public/{context}/v{N}`,
    endpoint-versioned from v4
  version: 1.0.0
servers:
  - url: https://api.sesamehr.com
    description: Production
security:
  - Bearer: []
paths:
  /discussion/v4/comments/{commentId}:
    put:
      tags:
        - Comments
      summary: Update comment
      description: >-
        Replace the text of a comment of the company. The author of the comment
        does not change.
      operationId: UpdateComment
      parameters:
        - name: commentId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCommentRequest'
      responses:
        '204':
          description: The comment was updated.
        '401':
          description: Missing or invalid API key
        '403':
          description: API consumer lacks permission over the requested resource
        '422':
          description: Validation error
components:
  schemas:
    UpdateCommentRequest:
      required:
        - comment
      properties:
        comment:
          description: New text of the comment. Surrounding spaces are removed.
          type: string
          maxLength: 3000
          minLength: 1
      type: object
  securitySchemes:
    Bearer:
      type: http
      description: 'Sesame Public API consumer token (Authorization: Bearer <token>)'
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.