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

# Edit own comment on a request shared with the user



## OpenAPI

````yaml /openapi.yaml patch /collaboration/requests/{request_id}/comments/{id}
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /collaboration/requests/{request_id}/comments/{id}:
    parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: integer
      - name: id
        in: path
        required: true
        schema:
          type: integer
    patch:
      tags:
        - Collaboration
      summary: Edit own comment on a request shared with the user
      operationId: collaboration_comments#update
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                body:
                  type: string
                  description: May be blank when the comment has files.
                mention_ids:
                  type: array
                files:
                  type: array
                  description: >-
                    Files to attach: PDF, images, Word, Excel or CSV. The
                    workspace plan limits the files on one comment
                    (`max_comment_attachments`,
                    `comment_attachments_limit_reached`) and the size of each
                    (`max_comment_attachment_size_mb`,
                    `comment_attachment_too_large`).
                remove_attachment_ids:
                  type: array
                  description: >-
                    The comment's own files to delete
                    (`comment_attachment_not_found` for any other id).
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/collaboration_shared_comment'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
components:
  schemas:
    collaboration_shared_comment:
      type: object
      description: >-
        A comment of a collaboration request's thread, as a collaborator sees
        it.
      required:
        - id
        - attachments
        - body
        - author
        - mine
        - from_workspace
        - created_at
      properties:
        id:
          type: integer
        body:
          type: string
        mention_ids:
          type: array
          items:
            type: integer
          description: >-
            Mentioned users (the request's recipients); the body holds them as
            `@email`.
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/comment_attachment'
        author:
          type: object
          properties:
            id:
              type: integer
            email:
              type: string
            first_name:
              type: string
              nullable: true
            last_name:
              type: string
              nullable: true
            logo_url:
              type: string
              nullable: true
        mine:
          type: boolean
          description: Written by the signed-in user, who may edit or delete it.
        from_workspace:
          type: boolean
          description: The author is a member of the sharing workspace.
        edited_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
    comment_attachment:
      type: object
      description: >-
        A file posted with a comment (any commentable, collaboration threads
        included). Oldest first. Deleted with the comment, or when its author
        removes it (`remove_attachment_ids`).
      required:
        - id
        - filename
        - content_type
        - byte_size
        - url
      properties:
        id:
          type: integer
        filename:
          type: string
          description: The name it was uploaded with.
        content_type:
          type: string
          example: application/pdf
        byte_size:
          type: integer
        url:
          type: string
          description: >-
            A download link that keeps the uploaded name (presigned on private
            storage).
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header

````

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