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

# Compute Connection Metadata

> Use this endpoint to compute and refresh metadata for a connection. Only the connection ID is required - the connection configuration will be fetched automatically from the database.



## OpenAPI

````yaml post /v1/api/connection/compute-metadata
openapi: 3.1.0
info:
  title: Upsolve API
  version: 1.4.2
servers:
  - url: https://api.upsolve.ai
security: []
tags: []
paths:
  /v1/api/connection/compute-metadata:
    post:
      summary: Compute connection metadata by connection ID
      description: >-
        Use this endpoint to compute and refresh metadata for a connection. Only
        the connection ID is required - the connection configuration will be
        fetched automatically from the database.
      operationId: PostV1ApiConnectionComputeMetadata
      requestBody:
        description: POST /v1/api/connection/compute-metadata Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                apiKey:
                  type: string
                  minLength: 1
                  description: >-
                    Upsolve API key, generated under Account → Developer
                    settings in the Upsolve Hub. Keys are user-scoped: pass
                    organizationId alongside the key to select which org to act
                    on.
                  examples:
                    - up_embed_************
                organizationId:
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                connectionId:
                  type: string
                  description: The ID of the connection to compute metadata for
                projectId:
                  type: string
                catalogNames:
                  type: array
                  items:
                    type: string
                schemaNames:
                  type: array
                  items:
                    type: string
                keepQueries:
                  type: boolean
                refreshConnectionSchema:
                  type: boolean
              required:
                - connectionId
            examples:
              example1:
                value:
                  apiKey: up_embed_************
        required: true
      responses:
        '200':
          description: POST /v1/api/connection/compute-metadata Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: success
                  data:
                    type: object
                    properties:
                      metadata:
                        description: The computed metadata for the connection
                    required:
                      - metadata
                    additionalProperties: false
                required:
                  - status
                  - data
                additionalProperties: false
        '400':
          description: POST /v1/api/connection/compute-metadata Negative response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: error
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                      code:
                        type: string
                      details:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties: {}
                    required:
                      - message
                    additionalProperties: false
                required:
                  - status
                  - error
                additionalProperties: false
      security:
        - APIKEY_1: []
components:
  securitySchemes:
    APIKEY_1:
      type: apiKey
      in: query
      name: apiKey
      x-in-actual: body
      description: apiKey MUST be supplied within the request body instead of query

````