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

# Update Token Metadata

> Sets or updates metadata for a specific token in a metadata repository. Requires secret key authentication.



## OpenAPI

````yaml PUT /v1/metadata/repos/{metadataRepoId}/tokens/{tokenId}
openapi: 3.0.0
info:
  title: Lootex Plus API - V1
  description: V1 endpoints
  version: 0.0.1
  contact: {}
servers:
  - url: https://api.lootexplus.com
security: []
tags: []
paths:
  /v1/metadata/repos/{metadataRepoId}/tokens/{tokenId}:
    put:
      tags:
        - V1
      summary: Set metadata for a specific token
      description: >-
        Sets or updates metadata for a specific token in a metadata repository.
        Requires secret key authentication.
      operationId: MetadataController_setTokenMetadata
      parameters:
        - name: metadataRepoId
          required: true
          in: path
          description: The metadata repository ID
          schema:
            example: 550e8400-e29b-41d4-a716-446655440000
            type: string
        - name: tokenId
          required: true
          in: path
          description: The token ID
          schema:
            example: '1'
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetTokenMetadataDto'
      responses:
        '200':
          description: Token metadata set successfully
        '404':
          description: Metadata repository not found
      security:
        - bearer: []
components:
  schemas:
    SetTokenMetadataDto:
      type: object
      properties:
        name:
          type: string
          description: Token name
          example: 'Cool NFT #1'
        description:
          type: string
          description: Token description
          example: This is a really cool NFT
        image:
          type: string
          description: Token image URL
          example: https://example.com/image.png
        animationUrl:
          type: string
          description: Animation URL for the token
          example: https://example.com/animation.mp4
        externalUrl:
          type: string
          description: External URL for the token
          example: https://example.com
        attributes:
          description: Token attributes
          type: array
          items:
            $ref: '#/components/schemas/TokenAttribute'
        properties:
          type: object
          description: Additional properties
          example:
            category: art
      required:
        - name
    TokenAttribute:
      type: object
      properties:
        trait_type:
          type: string
          description: Attribute trait type
          example: Background
        value:
          type: object
          description: Attribute value
          example: Blue
        display_type:
          type: string
          description: Display type for the attribute
          example: string
      required:
        - trait_type
        - value
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Secret key for authentication

````