cURL
curl --request POST \ --url https://api.camelai.com/api/v1/sources/add/mongodb/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "type": "mongodb", "account_name": "My MongoDB Database", "connection_string": "mongodb+srv://username:[email protected]/mydatabase" }'
{ "id": 123 }
Create a new MongoDB database connection.
API key authentication using Bearer scheme
Serializer for MongoDB connection configuration.
The response is of type object.
object
Was this page helpful?