> ## 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.

# Update Style

> Updates an existing Style. `name` and `isLearningModeEnabled` are replaced with the provided values; the two instruction fields are merge-patched — omit a field to keep its current value, pass an empty string to clear it. Changes take effect immediately — the next comment or DM generation uses the updated values. Toggling `isLearningModeEnabled` changes auto-collection behavior (see `comment-example` config).



## OpenAPI

````yaml https://api.goextrovert.com/client/v2/docs-json patch /client/v2/style/{id}
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/style/{id}:
    patch:
      tags:
        - Styles
      summary: Update Style
      description: >-
        Updates an existing Style. `name` and `isLearningModeEnabled` are
        replaced with the provided values; the two instruction fields are
        merge-patched — omit a field to keep its current value, pass an empty
        string to clear it. Changes take effect immediately — the next comment
        or DM generation uses the updated values. Toggling
        `isLearningModeEnabled` changes auto-collection behavior (see
        `comment-example` config).
      operationId: UserStyleClientApiController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRequestDto8'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateResponseDto8'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientApiErrorResponseDto'
      security:
        - api-key: []
components:
  schemas:
    UpdateRequestDto8:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: ID of the Style to update.
        name:
          type: string
          minLength: 1
          description: New Style name.
        isLearningModeEnabled:
          type: boolean
          description: >-
            New learning-mode flag value. See the `isLearningModeEnabled` field
            on create for semantics.
        styleInstructionsForComments:
          type: string
          description: >-
            New plain-text instructions for comment generation. Omit to keep the
            current value; pass an empty string to clear.
        styleInstructionsForDm:
          type: string
          description: >-
            New plain-text instructions for DM generation. Omit to keep the
            current value; pass an empty string to clear.
      required:
        - id
        - name
        - isLearningModeEnabled
    UpdateResponseDto8:
      type: object
      properties:
        status:
          type: string
          description: Response status
          enum:
            - success
        data:
          description: No response payload
          nullable: true
          enum:
            - null
          example: null
        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

````