Authorizations
Path Parameters
Body
application/json
UpdateDatasourceRequest
Response
Successful Response
UpdateDatasourceResponse
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="amongst coordinated all", recurrence="<value>", object_storage_config={
"bucket": "<value>",
"prefix": None,
"filters": {
"included_prefixes": [
"<value 1>",
"<value 2>",
"<value 3>",
],
"included_file_types": [
"<value 1>",
],
"recursive_prefixes": True,
"modified_date_start": "<value>",
"modified_date_end": "<value>",
"min_file_size": 289575,
"max_file_size": 208282,
},
"gcs_config": {
"key": "<value>",
"key1": "<value>",
},
"s3_config": {
"role_arn": "<value>",
"region": "<value>",
},
}, web_config={
"base_url": "https://giving-pendant.net",
"javascript_render": True,
"wait_for_selector": "<value>",
"domains": [],
"authentication": {
"username": "Audie94",
"password": "lD3r6ZuNUApWlV4",
},
})
# Handle response
print(res)
{
"id": "<string>"
}
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="amongst coordinated all", recurrence="<value>", object_storage_config={
"bucket": "<value>",
"prefix": None,
"filters": {
"included_prefixes": [
"<value 1>",
"<value 2>",
"<value 3>",
],
"included_file_types": [
"<value 1>",
],
"recursive_prefixes": True,
"modified_date_start": "<value>",
"modified_date_end": "<value>",
"min_file_size": 289575,
"max_file_size": 208282,
},
"gcs_config": {
"key": "<value>",
"key1": "<value>",
},
"s3_config": {
"role_arn": "<value>",
"region": "<value>",
},
}, web_config={
"base_url": "https://giving-pendant.net",
"javascript_render": True,
"wait_for_selector": "<value>",
"domains": [],
"authentication": {
"username": "Audie94",
"password": "lD3r6ZuNUApWlV4",
},
})
# Handle response
print(res)
{
"id": "<string>"
}
UpdateDatasourceRequest
Successful Response
UpdateDatasourceResponse
Was this page helpful?