sources / Add MongoDB connection

sources

Add MongoDB connection

Create a new MongoDB database connection.

POST /api/v1/sources/add/mongodb/

Headers

Authorizationrequired

any - API key authentication using Bearer scheme

Request Body

typerequired

string - Connection type identifier. Must be `MONGODB`

account_name

string - Display name for the connection

connection_stringrequired

string - MongoDB connection string (e.g., mongodb://user:pass@host/db or mongodb+srv://user:pass@cluster.mongodb.net/db)

Response

id

integer - The ID of the created connection