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

# Update Llm Profile

> Update an LLM profile.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v1/llm-profiles/{profile_id}
openapi: 3.1.0
info:
  title: wazzapi Public API
  description: >-
    Public API surface for external API-key clients. Only stable /api/v1
    endpoints are included.


    ## Webhook deliveries

    This reference also includes the webhook requests Wazzapi sends to your
    endpoint for incoming messages, message status updates, and device status
    changes. See the `Incoming webhooks` section in the sidebar for headers,
    payload fields, and concrete examples.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Incoming webhooks
    description: >-
      POST deliveries that Wazzapi sends to your webhook endpoint after you
      subscribe to supported events. Verify the signature against the raw body
      and return a 2xx response quickly.
paths:
  /api/v1/llm-profiles/{profile_id}:
    patch:
      tags:
        - llm-profiles
      summary: Update Llm Profile
      description: Update an LLM profile.
      operationId: update_llm_profile_api_v1_llm_profiles__profile_id__patch
      parameters:
        - name: profile_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Profile Id
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LLMProfileUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LLMProfileResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    LLMProfileUpdateRequest:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Name
        provider_kind:
          anyOf:
            - $ref: '#/components/schemas/LLMProviderKind'
            - type: 'null'
        base_url:
          anyOf:
            - type: string
              maxLength: 512
            - type: 'null'
          title: Base Url
        default_model:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Default Model
        api_key:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          title: Api Key
        extra_headers:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Extra Headers
        is_default:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Default
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Active
      type: object
      title: LLMProfileUpdateRequest
      description: Partial update of an LLM profile.
    LLMProfileResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        name:
          type: string
          title: Name
        provider_kind:
          $ref: '#/components/schemas/LLMProviderKind'
        base_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Base Url
        api_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Api Key
        default_model:
          type: string
          title: Default Model
        extra_headers:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Extra Headers
        is_default:
          type: boolean
          title: Is Default
        is_active:
          type: boolean
          title: Is Active
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - organization_id
        - name
        - provider_kind
        - base_url
        - api_key
        - default_model
        - extra_headers
        - is_default
        - is_active
        - created_at
        - updated_at
      title: LLMProfileResponse
      description: LLM profile detail/list item with masked key.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LLMProviderKind:
      type: string
      enum:
        - openai_compatible
        - anthropic_compatible
      title: LLMProviderKind
      description: Supported LLM provider API shapes.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````