POST
/
datasources
import meibelai
from meibelai import Meibelai
import os


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

    res = m_client.datasources.create(description="A datasource", name="My Datasource", type_=meibelai.DatasourceType.GOOGLE_DRIVE)

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

Authorizations

Meibel-API-Key
string
header
required

Body

application/json

Response

200
application/json
Successful Response

The response is of type object.