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

# Update an Asset Type

> Update an asset type



## OpenAPI

````yaml /api/openapi.yaml patch /v1/asset_types/{assetTypeId}
openapi: 3.0.3
info:
  title: Documentation Service API
  description: API documentation for Documentation Service
  version: 1.0.0
servers:
  - url: https://api.us.lexful.app
    description: US pod
security:
  - bearerAuth: []
    accountId: []
paths:
  /v1/asset_types/{assetTypeId}:
    patch:
      tags:
        - Asset Types
      summary: Update an Asset Type
      description: Update an asset type
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: assetTypeId
          required: true
          description: Asset type ID
      requestBody:
        $ref: '#/components/requestBodies/patch_v1_asset_types__assetTypeId__request'
      responses:
        '200':
          $ref: '#/components/responses/UpdateAssetTypeResponse'
        '400':
          $ref: '#/components/responses/BadRequestResponse'
        '403':
          $ref: '#/components/responses/ForbiddenResponse'
        '404':
          $ref: '#/components/responses/NotFoundResponse'
        '500':
          $ref: '#/components/responses/InternalServerErrorResponse'
components:
  requestBodies:
    patch_v1_asset_types__assetTypeId__request:
      required: true
      content:
        application/json:
          schema:
            $ref: >-
              #/components/schemas/patch_v1_asset_types__assetTypeId__request_application_json
          example:
            display_name: Secure Projects - Enhanced
            description: >-
              Project management with enhanced security features and compliance
              tracking
            properties:
              - name: project_name
                type: string
                display_name: Project Name
                description: Name of the project
                required: true
              - name: budget
                type: number
                display_name: Budget
                description: Project budget in dollars
                required: false
              - name: compliance_level
                type: string
                display_name: Compliance Level
                description: Required compliance level
                required: false
                enum:
                  - Standard
                  - High
                  - Critical
  responses:
    UpdateAssetTypeResponse:
      description: Default Response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UpdateAssetTypeResponse_application_json'
          example:
            id: 019983a9-c4bf-77da-a35b-5eb177b7b859
            account_id: 019983a9-c4bf-77da-a35b-5eb177b7b859
            name: system.contact
            display_name: Contacts
            description: Contacts are people and identities associated with an organization
            is_system: true
            properties:
              - name: first_name
                type: string
                display_name: First Name
                required: false
              - name: last_name
                type: string
                display_name: Last Name
                required: false
              - name: title
                type: string
                display_name: Title
                required: false
              - name: important
                type: boolean
                display_name: Important
                required: true
              - name: contact_type
                type: string
                display_name: Contact Type
                required: false
                enum:
                  - Approver
                  - Champion
                  - Decision Maker
                  - End User
                  - Evaluator
                  - Influencer
                  - Owner
                  - Other
              - name: contact_methods
                type: array
                display_name: Contact Methods
                required: false
                array:
                  type: object
                  properties:
                    - name: type
                      type: string
                      display_name: Contact Method Type
                      required: true
                      enum:
                        - Phone
                        - Fax
                        - Mobile
                        - Email
                        - Website
                        - Twitter
                        - LinkedIn
                        - Other
                    - name: value
                      type: string
                      display_name: Contact Method Value
                      required: true
              - name: preferred_contact_method
                type: string
                display_name: Preferred Contact Method
                required: false
                enum:
                  - Phone
                  - Fax
                  - Mobile
                  - Email
                  - Website
                  - Twitter
                  - LinkedIn
                  - Other
              - name: notes
                type: richtext
                display_name: Notes
                required: false
            references:
              - name: location
                display_name: Location
                required: false
                multiple: false
                target_asset_types:
                  - system.location
            version: 1
            created_at: '2024-01-15T10:30:00.000Z'
            updated_at: '2024-01-15T10:30:00.000Z'
            created_by: 019983a9-c4c0-73af-aec9-463feeadc2e7
            updated_by: 019983a9-c4c0-73af-aec9-463feeadc2e7
    BadRequestResponse:
      description: Bad request - validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ForbiddenResponse:
      description: Forbidden - insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFoundResponse:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerErrorResponse:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    patch_v1_asset_types__assetTypeId__request_application_json:
      type: object
      properties:
        display_name:
          type: string
          minLength: 1
          maxLength: 255
          description: Display name
        description:
          type: string
          maxLength: 1000
          description: Asset type description
        properties:
          type: array
          items:
            $ref: >-
              #/components/schemas/patch_v1_asset_types__assetTypeId__request_application_json_properties_items
          description: Asset type properties
        references:
          type: array
          items:
            $ref: >-
              #/components/schemas/patch_v1_asset_types__assetTypeId__request_application_json_references_items
          description: Asset type references
        ui_config:
          $ref: >-
            #/components/schemas/patch_v1_asset_types__assetTypeId__request_application_json_ui_config
    UpdateAssetTypeResponse_application_json:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Asset type unique identifier
        account_id:
          type: string
          format: uuid
          description: Account ID
        name:
          type: string
          description: Asset type name (unique, used in URLs)
        display_name:
          type: string
          description: Display name for UI
        description:
          type: string
          description: Asset type description
        is_system:
          type: boolean
          description: Whether this is a system asset type
        properties:
          type: array
          items:
            $ref: >-
              #/components/schemas/UpdateAssetTypeResponse_application_json_properties_items
          description: Asset type properties
        references:
          type: array
          items:
            $ref: >-
              #/components/schemas/UpdateAssetTypeResponse_application_json_references_items
          description: Asset type references
        ui_config:
          $ref: >-
            #/components/schemas/UpdateAssetTypeResponse_application_json_ui_config
        version:
          type: number
          description: Asset type version
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp
        created_by:
          type: string
          description: User ID who created
        updated_by:
          type: string
          description: User ID who last updated
      required:
        - id
        - name
        - display_name
        - is_system
        - properties
        - version
    ErrorResponse:
      description: Bad request - validation error
      type: object
      properties:
        status:
          type: number
          description: HTTP status code
        message:
          type: string
          description: Error message
        error_id:
          type: string
          description: Unique error identifier
        error_code:
          type: string
          description: Error code
        developer_message:
          type: string
          description: Additional details for developers
    patch_v1_asset_types__assetTypeId__request_application_json_properties_items:
      type: object
      properties:
        name:
          type: string
          description: Property name
        type:
          type: string
          enum:
            - string
            - number
            - integer
            - boolean
            - array
            - secret
            - totp
            - file
            - date
            - datetime
            - richtext
            - richtext_large
          description: Property type
        display_name:
          type: string
          description: Display name for UI
        description:
          type: string
          description: Property description
        required:
          type: boolean
          description: Whether this property is required
        enum:
          type: array
          items:
            anyOf:
              - type: string
              - type: number
              - type: boolean
          description: Allowed values for this property
        array:
          $ref: >-
            #/components/schemas/patch_v1_asset_types__assetTypeId__request_application_json_properties_items_array
        file_rules:
          $ref: >-
            #/components/schemas/patch_v1_asset_types__assetTypeId__request_application_json_properties_items_file_rules
        monitors:
          type: array
          description: Monitors targeting this property (only present when expand=monitors)
          items:
            $ref: >-
              #/components/schemas/patch_v1_asset_types__assetTypeId__request_application_json_properties_items_monitors_items
      required:
        - name
        - type
        - display_name
        - required
    patch_v1_asset_types__assetTypeId__request_application_json_references_items:
      type: object
      properties:
        name:
          type: string
          description: Reference name
        display_name:
          type: string
          description: Display name for UI
        description:
          type: string
          description: Reference description
        required:
          type: boolean
          description: Whether this reference is required
        multiple:
          type: boolean
          description: Whether multiple references are allowed
        target_asset_types:
          type: array
          items:
            type: string
          description: Target asset type names
      required:
        - name
        - display_name
        - required
        - multiple
    patch_v1_asset_types__assetTypeId__request_application_json_ui_config:
      type: object
      description: UI rendering hints for the asset/entity type
      properties:
        icon:
          type: string
          maxLength: 64
          description: Lucide icon name
        hidden_columns:
          type: array
          items:
            type: string
          maxItems: 200
          description: >-
            Deprecated: legacy per-account column visibility; column state now
            persists per-user in the browser. Retained so existing data
            round-trips.
        list_column_order:
          type: array
          items:
            type: string
          maxItems: 200
          description: Default column order for list views, as field keys.
        list_hidden_columns:
          type: array
          items:
            type: string
          maxItems: 200
          description: Field keys hidden by default in list views.
      additionalProperties: false
    UpdateAssetTypeResponse_application_json_properties_items:
      type: object
      properties:
        name:
          type: string
          description: Property name
        type:
          type: string
          enum:
            - string
            - number
            - integer
            - boolean
            - array
            - secret
            - totp
            - file
            - date
            - datetime
            - richtext
            - richtext_large
          description: Property type
        display_name:
          type: string
          description: Display name for UI
        description:
          type: string
          description: Property description
        required:
          type: boolean
          description: Whether this property is required
        enum:
          type: array
          items:
            anyOf:
              - type: string
              - type: number
              - type: boolean
          description: Allowed values for this property
        array:
          $ref: >-
            #/components/schemas/UpdateAssetTypeResponse_application_json_properties_items_array
        file_rules:
          $ref: >-
            #/components/schemas/UpdateAssetTypeResponse_application_json_properties_items_file_rules
        monitors:
          type: array
          description: Monitors targeting this property (only present when expand=monitors)
          items:
            $ref: >-
              #/components/schemas/UpdateAssetTypeResponse_application_json_properties_items_monitors_items
      required:
        - name
        - type
        - display_name
        - required
    UpdateAssetTypeResponse_application_json_references_items:
      type: object
      properties:
        name:
          type: string
          description: Reference name
        display_name:
          type: string
          description: Display name for UI
        description:
          type: string
          description: Reference description
        required:
          type: boolean
          description: Whether this reference is required
        multiple:
          type: boolean
          description: Whether multiple references are allowed
        target_asset_types:
          type: array
          items:
            type: string
          description: Target asset type names
      required:
        - name
        - display_name
        - required
        - multiple
    UpdateAssetTypeResponse_application_json_ui_config:
      type: object
      description: UI rendering hints for the asset/entity type
      properties:
        icon:
          type: string
          maxLength: 64
          description: Lucide icon name
        hidden_columns:
          type: array
          items:
            type: string
          maxItems: 200
          description: >-
            Deprecated: legacy per-account column visibility; column state now
            persists per-user in the browser. Retained so existing data
            round-trips.
        list_column_order:
          type: array
          items:
            type: string
          maxItems: 200
          description: Default column order for list views, as field keys.
        list_hidden_columns:
          type: array
          items:
            type: string
          maxItems: 200
          description: Field keys hidden by default in list views.
      additionalProperties: false
    patch_v1_asset_types__assetTypeId__request_application_json_properties_items_array:
      type: object
      properties:
        type:
          type: string
          enum:
            - string
            - number
            - integer
            - boolean
            - object
          description: Array item type
        properties:
          type: array
          items:
            $ref: >-
              #/components/schemas/patch_v1_asset_types__assetTypeId__request_application_json_properties_items_array_properties_items
          description: Properties for object array items
      description: Array item configuration
    patch_v1_asset_types__assetTypeId__request_application_json_properties_items_file_rules:
      type: object
      properties:
        max_size:
          type: number
          description: Maximum file size in bytes
        allowed_extensions:
          type: array
          items:
            type: string
          description: Allowed file extensions (e.g., [".pdf", ".jpg"])
        allowed_mime_types:
          type: array
          items:
            type: string
          description: Allowed MIME types (e.g., ["application/pdf", "image/jpeg"])
      description: File validation rules
    patch_v1_asset_types__assetTypeId__request_application_json_properties_items_monitors_items:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Monitor ID
        name:
          type: string
          description: Monitor name
        kind:
          type: string
          description: Monitor kind
        enabled:
          type: boolean
          description: Whether the monitor is active
        config:
          type: object
          nullable: true
          additionalProperties: true
          description: Monitor configuration
      required:
        - id
        - name
        - kind
        - enabled
    UpdateAssetTypeResponse_application_json_properties_items_array:
      type: object
      properties:
        type:
          type: string
          enum:
            - string
            - number
            - integer
            - boolean
            - object
          description: Array item type
        properties:
          type: array
          items:
            $ref: >-
              #/components/schemas/UpdateAssetTypeResponse_application_json_properties_items_array_properties_items
          description: Properties for object array items
      description: Array item configuration
    UpdateAssetTypeResponse_application_json_properties_items_file_rules:
      type: object
      properties:
        max_size:
          type: number
          description: Maximum file size in bytes
        allowed_extensions:
          type: array
          items:
            type: string
          description: Allowed file extensions (e.g., [".pdf", ".jpg"])
        allowed_mime_types:
          type: array
          items:
            type: string
          description: Allowed MIME types (e.g., ["application/pdf", "image/jpeg"])
      description: File validation rules
    UpdateAssetTypeResponse_application_json_properties_items_monitors_items:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Monitor ID
        name:
          type: string
          description: Monitor name
        kind:
          type: string
          description: Monitor kind
        enabled:
          type: boolean
          description: Whether the monitor is active
        config:
          type: object
          nullable: true
          additionalProperties: true
          description: Monitor configuration
      required:
        - id
        - name
        - kind
        - enabled
    patch_v1_asset_types__assetTypeId__request_application_json_properties_items_array_properties_items:
      type: object
      properties:
        name:
          type: string
          description: Property name
        type:
          type: string
          enum:
            - string
            - number
            - integer
            - boolean
          description: Property type
        description:
          type: string
          description: Property description
        required:
          type: boolean
          description: Whether this property is required
        enum:
          type: array
          items:
            anyOf:
              - type: string
              - type: number
              - type: boolean
          description: Allowed values
      required:
        - name
        - type
        - required
    UpdateAssetTypeResponse_application_json_properties_items_array_properties_items:
      type: object
      properties:
        name:
          type: string
          description: Property name
        type:
          type: string
          enum:
            - string
            - number
            - integer
            - boolean
          description: Property type
        description:
          type: string
          description: Property description
        required:
          type: boolean
          description: Whether this property is required
        enum:
          type: array
          items:
            anyOf:
              - type: string
              - type: number
              - type: boolean
          description: Allowed values
      required:
        - name
        - type
        - required
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token
    accountId:
      type: apiKey
      in: header
      name: X-Account-ID
      description: Account ID

````