Skip to main content
PUT
/
datasource
/
{datasource_id}
Python (SDK)
from meibelai import Meibelai
import os


with Meibelai(
    api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""),
) as m_client:

    res = m_client.datasources.update_datasource(datasource_id="<id>", name="<value>", description="carelessly now interestingly connect sore outrageous", recurrence="<value>", object_storage_config=None, web_config={
        "base_url": "https://quintessential-masterpiece.info/",
        "javascript_render": False,
        "wait_for_selector": "<value>",
        "domains": [
            {
                "domain": "grown-chairperson.com",
                "limit_pattern": "<value>",
                "exclude_pattern": "<value>",
                "ingestible": False,
                "expandable": True,
            },
        ],
        "authentication": {
            "username": "Craig.Torp",
            "password": "EOnNAiJTwzj27zA",
        },
    })

    # Handle response
    print(res)
{
  "id": "<string>"
}

Authorizations

Meibel-API-Key
string
header
required

Path Parameters

datasource_id
string
required

Body

application/json

UpdateDatasourceRequest

name
string | null
description
string | null
recurrence
string | null
object_storage_config
ObjectStorageConfig · object

ObjectStorageConfig

web_config
DatasourceWebConfig · object

DatasourceWebConfig

Response

Successful Response

UpdateDatasourceResponse

id
string
required