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

# Create Comment Example

> Adds a new CommentExample to a Style. The text should be a complete, polished sample comment in the desired tone of voice — it will be used as a writing-style sample when generating comments. Prefer several short, varied examples over one long block. Text limit: 1250 characters. Up to 20 entries per Style. If the parent Style has `isLearningModeEnabled: true`, the backend additionally captures CommentExamples automatically from the user's edited-and-approved comments, so slots may already be partially consumed.



## OpenAPI

````yaml https://api.goextrovert.com/client/v2/docs-json post /client/v2/comment-example
openapi: 3.0.0
info:
  title: Extrovert Client API
  description: >-
    Public API for Extrovert platform integration. Use your API key for
    authentication.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.goextrovert.com/
    description: API Server
security: []
tags: []
paths:
  /client/v2/comment-example:
    post:
      tags:
        - Comment Examples
      summary: Create Comment Example
      description: >-
        Adds a new CommentExample to a Style. The text should be a complete,
        polished sample comment in the desired tone of voice — it will be used
        as a writing-style sample when generating comments. Prefer several
        short, varied examples over one long block. Text limit: 1250 characters.
        Up to 20 entries per Style. If the parent Style has
        `isLearningModeEnabled: true`, the backend additionally captures
        CommentExamples automatically from the user's edited-and-approved
        comments, so slots may already be partially consumed.
      operationId: ResponsePostExampleClientApiController_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRequestDto3'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateResponseDto3'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientApiErrorResponseDto'
      security:
        - api-key: []
components:
  schemas:
    CreateRequestDto3:
      type: object
      properties:
        styleId:
          type: string
          format: uuid
          description: ID of the Style this CommentExample will be attached to.
        text:
          type: string
          description: >-
            Text of the example comment. Up to 1250 characters, must be
            non-blank.
      required:
        - styleId
        - text
    CreateResponseDto3:
      type: object
      properties:
        status:
          type: string
          description: Response status
          enum:
            - success
        data:
          type: object
          properties:
            id:
              type: string
              format: uuid
              description: Created entity ID
              example: 8d256aa6-9b12-49a7-93ee-bf41634b5b60
        message:
          type: string
          description: Success message
          example: Operation completed successfully
      required:
        - status
        - data
        - message
    ClientApiErrorResponseDto:
      type: object
      properties:
        status:
          type: string
          description: Response status
          example: error
          enum:
            - error
        data:
          type: object
          description: Response data
          example: null
        message:
          type: string
          description: Error message
          example: An error occurred while processing the request
      required:
        - status
        - data
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key for authentication

````