GET
/
datasources
/
{datasource_id}
from meibelai import Meibelai
import os


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

    res = m_client.datasources.get(datasource_id="<id>")

    # 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>"
}

Authorizations

Meibel-API-Key
string
header
required

Path Parameters

datasource_id
string
required

Response

200
application/json
Successful Response

The response is of type object.