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

# Update asset governance and custom metadata values

> Updates dedicated alt text, caption, rights, and values for workspace-defined custom fields. Requires files:write.



## OpenAPI

````yaml /openapi.json patch /api/files/{id}/asset-details
openapi: 3.1.0
info:
  title: Convertly API
  version: 1.0.0
  description: >-
    Convertly provides production API endpoints for media conversion,
    compression, Image CDN delivery, Forma AI, HLS/DASH video streaming, media
    tools, async jobs, workflows, webhooks, and Convertly Storage.
  license:
    name: Proprietary
    url: https://convertly.sh/terms
servers:
  - url: https://convertly.sh
security:
  - bearerAuth: []
  - apiKeyAuth: []
paths:
  /api/files/{id}/asset-details:
    patch:
      tags:
        - Files
      summary: Update asset governance and custom metadata values
      description: >-
        Updates dedicated alt text, caption, rights, and values for
        workspace-defined custom fields. Requires files:write.
      operationId: updateAssetDetails
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetGovernance'
      responses:
        '200':
          description: Updated asset governance
          content:
            application/json:
              schema:
                type: object
                properties:
                  governance:
                    $ref: '#/components/schemas/AssetGovernance'
                required:
                  - governance
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
components:
  schemas:
    AssetGovernance:
      type: object
      properties:
        altTextMode:
          type: string
          enum:
            - unset
            - informative
            - decorative
        altText:
          type: string
          maxLength: 2000
        caption:
          type: string
          maxLength: 5000
        rights:
          $ref: '#/components/schemas/AssetRights'
        customFields:
          type: object
          description: Values keyed by workspace custom-field UUID.
          additionalProperties: true
      required:
        - altTextMode
        - altText
        - caption
        - rights
        - customFields
    AssetRights:
      type: object
      properties:
        copyrightNotice:
          type: string
          maxLength: 500
        creator:
          type: string
          maxLength: 300
        creditLine:
          type: string
          maxLength: 500
        licenseUrl:
          type: string
          maxLength: 2000
        usageTerms:
          type: string
          maxLength: 5000
        expiresAt:
          type: string
          description: ISO date or an empty string.
        territory:
          type: string
          maxLength: 300
      required:
        - copyrightNotice
        - creator
        - creditLine
        - licenseUrl
        - usageTerms
        - expiresAt
        - territory
    Error:
      type: object
      properties:
        error:
          type: string
        upgradeUrl:
          type: string
      required:
        - error
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Dashboard-generated Convertly API key. Keys currently begin with
        `cvly_`.
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Alternative API key header for server-side clients.

````