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

# Update user model

> Updates a user-defined model. Supports type transitions (single to router and vice versa). Name collision checks apply on rename.




## OpenAPI

````yaml /openapi.yaml put /user-models/{id}
openapi: 3.0.3
info:
  title: Hill90 API
  description: Hill90 platform API — agent management and lifecycle operations.
  version: 0.1.0
servers:
  - url: /
    description: Relative (behind Traefik reverse proxy)
security: []
paths:
  /user-models/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    put:
      summary: Update user model
      description: >
        Updates a user-defined model. Supports type transitions (single to
        router and vice versa). Name collision checks apply on rename.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                model_type:
                  type: string
                  enum:
                    - single
                    - router
                connection_id:
                  type: string
                  format: uuid
                litellm_model:
                  type: string
                routing_config:
                  type: object
                description:
                  type: string
                is_active:
                  type: boolean
                detected_type:
                  type: string
                capabilities:
                  type: array
                  items:
                    type: string
                icon_emoji:
                  type: string
                  deprecated: true
                  description: Deprecated — ignored on writes. Use icon_url instead.
                icon_url:
                  type: string
      responses:
        '200':
          description: Model updated
        '400':
          description: Invalid input or unowned connection
        '401':
          description: Not authenticated
        '403':
          description: Requires user role
        '404':
          description: Model not found
        '409':
          description: Name conflict
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````