List all datasources for a project
Python
from meibelai import Meibelai import os with Meibelai( api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""), ) as m_client: res = m_client.datasources.list() # Handle response print(res)
[ { "created_at": "2021-08-01T12:00:00Z", "data_elements": [ { "id": "de_xiTz3", "parent_id": "de_xiTz3", "is_container_element": "True", "datasource_id": "ds_xiTz3", "name": "My Data Element", "value": "Value", "type": "text", "description": "A data element", "processed": "True", "created_at": "2021-08-01T12:00:00Z", "updated_at": "2021-08-01T12:00:00Z", "metadata": { "key": "value" } } ], "description": "A datasource", "id": "ds_xiTz3", "metadata": { "key": "value" }, "name": "My Datasource", "type": "<string>", "updated_at": "<string>" } ]
Number of items to skip
x >= 0
Maximum number of items to return
1 <= x <= 100
Field to sort by
Sort order (asc or desc)
Successful Response
The response is of type DatasourceResponse · object[].
DatasourceResponse · object[]