POST
/
api
/
v1
/
sources
/
add
/
mongodb
/
Add MongoDB connection
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",
  "hostname": "localhost",
  "port": 27017,
  "username": "admin",
  "password": "password",
  "database_name": "mydb"
}'
{
  "id": 123
}

Authorizations

Authorization
string
header
required

JWT or API key authentication using Bearer scheme

Body

application/json

Serializer for MongoDB connection configuration.

Response

200
application/json

The response is of type object.