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

# Update Metadata

<span style={{display: "flex", gap: "10px", flexDirection: "row", alignItems: "center"}}>
  <img src="https://cdn.peaka.com/badges/partner-api-key-badge.png" />

  <img src="https://cdn.peaka.com/badges/project-api-key-badge.png" />
</span>


## OpenAPI

````yaml put /metadata/{projectId}/{catalogId}/{schemaName}/{tableName}
openapi: 3.0.1
info:
  title: Peaka Gateway API
  description: Peaka Gateway API Documentation
  version: '1.0'
servers:
  - url: https://partner.peaka.studio/api/v1
    description: Default Server URL (US Zone)
  - url: https://partner.eu.peaka.studio/api/v1
    description: EU Zone
security:
  - bearerAuth: []
paths:
  /metadata/{projectId}/{catalogId}/{schemaName}/{tableName}:
    put:
      tags:
        - Data -- Metadata
      summary: Update Metadata
      operationId: updateMetadata
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: catalogId
          in: path
          required: true
          schema:
            type: string
        - name: schemaName
          in: path
          required: true
          schema:
            type: string
        - name: tableName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataUpdateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
                additionalProperties:
                  type: object
components:
  schemas:
    MetadataUpdateRequest:
      type: object
      properties:
        tableDescription:
          type: string
        columns:
          type: array
          items:
            $ref: '#/components/schemas/MetadataColumn'
        useWithAI:
          type: boolean
    MetadataColumn:
      type: object
      properties:
        columnName:
          type: string
        columnDescription:
          type: string
        dataType:
          type: string
        order:
          type: integer
          format: int32
        isNotNull:
          type: boolean
        isSystem:
          type: boolean
        isUnique:
          type: boolean
        isPrimary:
          type: boolean
        isCategorical:
          type: boolean
        categoricalValues:
          type: array
          items:
            type: string
        lineage:
          type: array
          items:
            $ref: '#/components/schemas/MetadataColumnLineage'
    MetadataColumnLineage:
      type: object
      properties:
        tables:
          type: array
          items:
            type: string
        column:
          type: string
        expression:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        Use the Authorization header with the value 'Bearer <apiKey>' to
        authenticate. Partner API Keys have full access; Project API Keys are
        limited to their project scope. Learn more:
        https://docs.peaka.com/api-reference/authentication
      scheme: bearer
      bearerFormat: Api Key

````