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

# Patch Provider Config

> Partially update a provider configuration.



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/provider-configs/{config_id}
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/provider-configs/{config_id}:
    patch:
      tags:
        - v1
        - protected
        - provider-configs
      summary: Patch Provider Config
      description: Partially update a provider configuration.
      operationId: patch_provider_config_v1_provider_configs__config_id__patch
      parameters:
        - in: path
          name: config_id
          required: true
          schema:
            format: uuid
            title: Config Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProviderConfigUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderConfigResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ProviderConfigUpdate:
      additionalProperties: false
      description: Patch payload for an existing provider configuration. Unset = unchanged.
      properties:
        api_key:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            New API key. Replaces the previously stored secret. Send an empty
            string to clear the key for keyless custom endpoints.
          title: Api Key
        description:
          anyOf:
            - maxLength: 1000
              type: string
            - type: 'null'
          description: New description for the configuration.
          title: Description
        endpoint_url:
          anyOf:
            - type: string
            - type: 'null'
          description: New endpoint URL, or empty string to clear.
          title: Endpoint Url
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Activate or deactivate the configuration.
          title: Is Active
        is_public:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Toggle workspace-wide visibility.
          title: Is Public
        name:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          description: New human-readable label for the configuration.
          title: Name
      title: ProviderConfigUpdate
      type: object
    ProviderConfigResponse:
      properties:
        created_at:
          title: Created At
          type: string
        created_by:
          title: Created By
          type: string
        endpoint_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Endpoint Url
        id:
          title: Id
          type: string
        is_active:
          title: Is Active
          type: boolean
        is_public:
          title: Is Public
          type: boolean
        model_instance_ids:
          default: []
          items:
            type: string
          title: Model Instance Ids
          type: array
        name:
          title: Name
          type: string
        provider_spec_id:
          title: Provider Spec Id
          type: string
        provider_spec_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider Spec Key
        provider_spec_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider Spec Name
        updated_at:
          title: Updated At
          type: string
        workspace_id:
          title: Workspace Id
          type: string
      required:
        - id
        - provider_spec_id
        - name
        - endpoint_url
        - workspace_id
        - created_by
        - is_active
        - is_public
        - created_at
        - updated_at
      title: ProviderConfigResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````