Skip to main content
PUT
/
datasources
/
{datasource_id}
Python
from meibel import MeibelClient

client = MeibelClient(api_key="your-api-key")

# Create request body
body = UpdateDatasourceRequest(name="Example")

result = client.datasources.update("datasource_id_value", body=body)
print(result)
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "connector": {
    "type": "database",
    "database": {
      "host": "<string>",
      "port": 123,
      "database": "<string>",
      "schema_name": "<string>"
    },
    "cloud_storage": {
      "provider": "s3",
      "bucket": "<string>",
      "prefix": "<string>",
      "role_arn": "<string>",
      "region": "<string>"
    },
    "web_crawl": {
      "base_url": "<string>",
      "javascript_render": false,
      "domains": [
        {
          "domain": "<string>",
          "include_pattern": "<string>",
          "exclude_pattern": ""
        }
      ]
    }
  },
  "created_at": "<string>",
  "updated_at": "<string>",
  "last_sync_at": "<string>",
  "last_sync_status": "<string>",
  "total_ingested_files": 123,
  "metadata_config": {
    "type": "catalog",
    "fields": [
      {
        "name": "<string>",
        "type": "string",
        "description": "<string>",
        "index": true
      }
    ],
    "model_id": "<string>"
  },
  "files": {
    "total": 123,
    "deleted": 123
  },
  "ingest_counts": {
    "rag": {
      "total": 123,
      "new": 123,
      "updated": 123
    },
    "tag": {
      "total": 123,
      "new": 123,
      "updated": 123
    },
    "ref_graph": {
      "total": 123,
      "new": 123,
      "updated": 123
    }
  },
  "tables": [
    {
      "name": "<string>",
      "column_count": 123,
      "description": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.meibel.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Meibel-API-Key
string
header
required

Path Parameters

datasource_id
string
required

Body

application/json

Body for updating a datasource. Omit a field to leave it unchanged.

name
string | null

Updated datasource name

description
string | null

Updated description

connector
ConnectorConfig · object

Updated connection configuration

metadata_config
MetadataConfigRequest · object

Metadata extraction config — if changed, re-extraction triggers automatically

tables
TableDescriptionUpdate · object[] | null

Table and column descriptions to update (structured datasources only)

Response

Successful Response

A datasource with its latest sync/ingest state and (optionally) table details.

id
string
required

Unique datasource ID

name
string
required

Human-readable datasource name

description
string
required

What this datasource contains

connector
ConnectorConfig · object
required

Connection configuration

created_at
string
required

ISO 8601 creation timestamp

updated_at
string
required

ISO 8601 last-update timestamp

last_sync_at
string | null

ISO 8601 timestamp of the most recent ingest run

last_sync_status
string | null

Status of the most recent ingest run (e.g. 'completed', 'failed')

total_ingested_files
integer | null

Total number of files ingested across all runs

metadata_config
MetadataConfigResponse · object

Current metadata extraction configuration

files
FilesSummaryResponse · object

File counts for the datasource

ingest_counts
IngestCountsResponse · object

Per-method counts from the latest ingest run

tables
TableSummaryResponse · object[] | null

Tables discovered on a structured datasource — only populated when include_tables=true