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

# Update asset metadata

> Update metadata for one saved asset owned by the current account.



## OpenAPI

````yaml /openapi.json patch /assets/{id}
openapi: 3.1.0
info:
  title: LuluLab API
  version: 1.0.0
  description: >-
    Create images and videos, recreate videos from a reference, manage source
    assets, and track tasks and credits.
servers:
  - url: https://customer.lululab.ai
    description: Production
security: []
tags:
  - name: Getting started
    description: Upload product photos and estimate credits.
  - name: Creative tasks
    description: Submit an asynchronous workflow task and retrieve its result.
  - name: Billing
  - name: Models and references
  - name: Files and assets
paths:
  /assets/{id}:
    patch:
      tags:
        - Files and assets
      summary: Update asset metadata
      description: Update metadata for one saved asset owned by the current account.
      operationId: updateAsset
      parameters:
        - name: id
          in: path
          description: The asset ID.
          required: true
          schema:
            type: string
      requestBody:
        description: The asset fields to update.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetRecordPatchForm'
          application/*+json:
            schema:
              $ref: '#/components/schemas/AssetRecordPatchForm'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetRecordModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - ApiKey: []
components:
  schemas:
    AssetRecordPatchForm:
      type: object
      properties:
        name:
          maxLength: 128
          minLength: 0
          type:
            - 'null'
            - string
        description:
          type:
            - 'null'
            - string
        mediaType:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/MediaType'
        assetType:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/AssetType'
        assetSource:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/AssetSource'
        attributes:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/AssetRecordAttributesModel'
        tags:
          type:
            - 'null'
            - array
          items:
            type: string
        expiresAt:
          type:
            - 'null'
            - string
          format: date-time
      description: Specifies the asset fields to update.
    AssetRecordModel:
      type: object
      properties:
        id:
          type: string
        ownerId:
          type: string
        name:
          type:
            - 'null'
            - string
        mediaType:
          $ref: '#/components/schemas/MediaType'
        assetType:
          $ref: '#/components/schemas/AssetType'
        assetSource:
          $ref: '#/components/schemas/AssetSource'
        fingerprint:
          type:
            - 'null'
            - string
        fileId:
          type:
            - 'null'
            - string
          format: uuid
        description:
          type:
            - 'null'
            - string
        sourceUrl:
          type:
            - 'null'
            - string
        location:
          type:
            - 'null'
            - string
        attributes:
          $ref: '#/components/schemas/AssetRecordAttributesModel'
        tags:
          type: array
          items:
            type: string
        expiresAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        file:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/AssetFileModel'
        thumbnail:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/AssetFileModel'
        thumbnailStatus:
          type: string
      description: Represents an asset record exposed by the Customer service.
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
    MediaType:
      enum:
        - Image
        - Video
        - Audio
      x-enumDescriptions:
        Image: An image asset.
        Video: A video asset.
        Audio: An audio asset.
    AssetType:
      enum:
        - General
        - Character
        - Product
        - Scene
      x-enumDescriptions:
        General: A general-purpose asset.
        Character: A character asset.
        Product: A product asset.
        Scene: A scene asset.
    AssetSource:
      enum:
        - Uploaded
        - Generated
        - Preset
      x-enumDescriptions:
        Uploaded: An asset uploaded by a user.
        Generated: An asset generated by a service.
        Preset: A predefined asset.
    AssetRecordAttributesModel:
      type: object
      properties:
        duration:
          maxLength: 16
          minLength: 0
          type:
            - 'null'
            - string
        audioRole:
          maxLength: 32
          minLength: 0
          type:
            - 'null'
            - string
      description: Represents the attributes associated with a Customer asset record.
    AssetFileModel:
      type: object
      properties:
        id:
          type: string
          format: uuid
        ownerId:
          type: string
        mimeType:
          type: string
        ext:
          type:
            - 'null'
            - string
        fingerprint:
          type:
            - 'null'
            - string
        size:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int64
        referenceId:
          type:
            - 'null'
            - string
          format: uuid
        isPhysicallyDeleted:
          type: boolean
        location:
          type: string
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
      description: Represents the file associated with a Customer asset record.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: Authorization
      description: Send the raw luk- API key. Do not add Bearer.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.